Skip to content

cannot call bedrock models with cross-region profile #136

Description

@tmokmss

Hi when I try to use Sonnet 4 from Amazon Bedrock, opencode throws the below error.

AI_APICallError: undefined: Invocation of model ID anthropic.claude-sonnet-4-20250514-v1:0 with on-demand throughput isn’t supported. Retry
your request with the ID or ARN of an inference profile that contains this
model.

Currently Bedrock supports Sonnet 4 model only with cross-region inference profile, so you need to add a prefix like us. to the model id (e.g., us.anthropic.claude-sonnet-4-20250514-v1:0). It would be great if opencode supports it 🙏

Activity

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

Metadata

Metadata

Assignees

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