Skip to content

Can't find valid model with --model #17853

@mausch

Description

@mausch

Description

$ opencode --model openrouter/hunter-alpha run "hello"
ProviderModelNotFoundError: ProviderModelNotFoundError
 data: {
  providerID: "openrouter",
  modelID: "hunter-alpha",
  suggestions: [ "openrouter/hunter-alpha" ],
},

      at getModel (/$bunfs/root/src/index.js:185999:15)

Error: Model not found: openrouter/hunter-alpha. Did you mean: openrouter/hunter-alpha?

Issues:

  • model is valid but reported as invalid i.e. this lookup looks broken
  • it's suggesting the same model I told it to use i.e. suggestion looks broken

Plugins

No response

OpenCode version

1.2.27

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions