Claude Sonnet 3.7 via Bedrock Broken for GovCloud #8523

Closed
opened 2026-02-16 18:10:11 -05:00 by yindo · 6 comments
Owner

Originally created by @SquadUpSquid on GitHub (Feb 4, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

I noticed this morning that Amazon bedrock Model Claude Sonnet 3.7 got updated to be Claude Sonnet 3.7 (US). This inherently changed the model_id to be us.anothropic.claude3-7-...... and that has broken my access to it. I'm running through AWS GovCloud and there is no us.anothropic.claude3-7-...... available. Can this be fixed or another model with the origional model_id added back: anthropic.claude-3-7-sonnet-20250219-v1:0

Plugins

n/a

OpenCode version

1.1.51

Steps to reproduce

No response

Screenshot and/or share link

Image Image

Operating System

WSL 2

Terminal

WSL Terminal

Originally created by @SquadUpSquid on GitHub (Feb 4, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description I noticed this morning that Amazon bedrock Model Claude Sonnet 3.7 got updated to be Claude Sonnet 3.7 (US). This inherently changed the model_id to be `us.anothropic.claude3-7-......` and that has broken my access to it. I'm running through AWS GovCloud and there is no `us.anothropic.claude3-7-......` available. Can this be fixed or another model with the origional model_id added back: `anthropic.claude-3-7-sonnet-20250219-v1:0` ### Plugins n/a ### OpenCode version 1.1.51 ### Steps to reproduce _No response_ ### Screenshot and/or share link <img width="617" height="278" alt="Image" src="https://github.com/user-attachments/assets/a4f3d2e4-1db1-4026-a473-1706f139f3dc" /> <img width="641" height="310" alt="Image" src="https://github.com/user-attachments/assets/31338809-21cc-4ca5-b1ca-af226c72b7ea" /> ### Operating System WSL 2 ### Terminal WSL Terminal
yindo added the windowsbug labels 2026-02-16 18:10:11 -05:00
yindo closed this issue 2026-02-16 18:10:11 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 4, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #2481: Bedrock provider doesn't work with govcloud - This is a known issue where the code incorrectly handles govcloud regions by prepending 'us' prefix without checking for govcloud-specific regions (us-gov-west-1, us-gov-east-1). The fix would involve ensuring the region prefix handling accounts for govcloud regions properly.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Feb 4, 2026): This issue might be a duplicate of existing issues. Please check: - #2481: Bedrock provider doesn't work with govcloud - This is a known issue where the code incorrectly handles govcloud regions by prepending 'us' prefix without checking for govcloud-specific regions (us-gov-west-1, us-gov-east-1). The fix would involve ensuring the region prefix handling accounts for govcloud regions properly. Feel free to ignore if none of these address your specific case.
Author
Owner

@R44VC0RP commented on GitHub (Feb 4, 2026):

Can you try running opencode models --refresh and try again please?

@R44VC0RP commented on GitHub (Feb 4, 2026): Can you try running `opencode models --refresh` and try again please?
Author
Owner

@jdowdy11 commented on GitHub (Feb 4, 2026):

Can you try running opencode models --refresh and try again please?

Hi, I tried this and am still seeing the same error as mentioned above.

@jdowdy11 commented on GitHub (Feb 4, 2026): > Can you try running `opencode models --refresh` and try again please? Hi, I tried this and am still seeing the same error as mentioned above.
Author
Owner

@rekram1-node commented on GitHub (Feb 4, 2026):

try running again, should be fixed now, apologies. Tried to cleanup some bedrock stuff and it was kinda messy

@rekram1-node commented on GitHub (Feb 4, 2026): try running again, should be fixed now, apologies. Tried to cleanup some bedrock stuff and it was kinda messy
Author
Owner

@jdowdy11 commented on GitHub (Feb 4, 2026):

Yes, that seems to have worked now. I am able to use Claude Sonnet 3.7 - Thank you!

@jdowdy11 commented on GitHub (Feb 4, 2026): Yes, that seems to have worked now. I am able to use Claude Sonnet 3.7 - Thank you!
Author
Owner

@SquadUpSquid commented on GitHub (Feb 4, 2026):

Can you try running opencode models --refresh and try again please?

This worked for me, thank yall for fixing this.

@SquadUpSquid commented on GitHub (Feb 4, 2026): > Can you try running `opencode models --refresh` and try again please? This worked for me, thank yall for fixing this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8523