Skip to content

bug: error state if small_model is set to unenabled provider #1643

Closed

Description

@rekram1-node

If I set this in my opencode.jsonc:

{
  ...,
 "model": "anthropic/claude-sonnet-4-20250514",
}

And I am not signed into anthropic, opencode will handle it properly and default to a model I do have access to

However, if I set:

{
  ...,
 "small_model": "anthropic/claude-3-5-haiku-20241022",
}

And I am not signed into anthropic, opencode will hang and error out at the title generation step

I think we should gracefully handle it but emit a warning or something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions