-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
Session title generation fails for Amazon Bedrock users when their region doesn't match the first cross-region model variant returned by models.dev.
getSmallModel() returns the first model matching a priority string. Due to models.dev JSON key ordering, eu.anthropic.claude-haiku-4-5-20251001-v1:0 is returned before global. or us. variants, causing the function to fail silently and not generating the title.
Plugins
None
OpenCode version
1.1.51
Steps to reproduce
- Configure Amazon Bedrock provider with region
us-east-1 - Start a new session and send a message
- Session title stays as "New session - [timestamp]"
- Check logs at
~/.local/share/opencode/log/for error:statusCode":400with"message":"The provided model identifier is invalid."- The logs show the EU model (
eu.anthropic.claude-haiku-4-5-20251001-v1:0) being sent to the US endpoint (bedrock-runtime.us-east-1.amazonaws.com).
- The logs show the EU model (
- Change back to an eu region and the title generates correctly.
Screenshot and/or share link
No response
Operating System
macOS 15.7.3
Terminal
Ghostty
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working