[PR #482] [MERGED] fix(#467): more granular bedrock modelID based on aws region #9626

Closed
opened 2026-02-16 18:13:52 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/482
Author: @Dizzzmas
Created: 6/27/2025
Status: Merged
Merged: 6/30/2025
Merged by: @thdxr

Base: devHead: fix/#467-bedrock-model-ids


📝 Commits (2)

  • 1441ad4 fix(#467): more granular bedrock modelID based on aws region
  • e3e9a7d eu-south-1, eu-south-2

📊 Changes

1 file changed (+47 additions, -3 deletions)

View changed files

📝 packages/opencode/src/provider/provider.ts (+47 -3)

📄 Description

https://github.com/sst/opencode/issues/467

Problem

Unfortunately bedrock is not consistent in enforcing regional model IDs

While all us regions require prefixes like us.anthropic*** in eu it's only required for some of the regions, and e.g. in eu-west-2 a prefix-less model ID is required

This PR aims to handle these cases and make sure OpenCode supports them better

How was this tested?

Ran opencode with AWS_REGION=eu-west-2 with Claude 3 and made sure it works

Screenshot 2025-06-27 at 22 50 31

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/482 **Author:** [@Dizzzmas](https://github.com/Dizzzmas) **Created:** 6/27/2025 **Status:** ✅ Merged **Merged:** 6/30/2025 **Merged by:** [@thdxr](https://github.com/thdxr) **Base:** `dev` ← **Head:** `fix/#467-bedrock-model-ids` --- ### 📝 Commits (2) - [`1441ad4`](https://github.com/anomalyco/opencode/commit/1441ad431500045083f82c3e73ec7286a33ff0e9) fix(#467): more granular bedrock modelID based on aws region - [`e3e9a7d`](https://github.com/anomalyco/opencode/commit/e3e9a7dd2b1fe524fb24e5759251a04dcb750f68) eu-south-1, eu-south-2 ### 📊 Changes **1 file changed** (+47 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/provider/provider.ts` (+47 -3) </details> ### 📄 Description https://github.com/sst/opencode/issues/467 ## Problem Unfortunately bedrock is not consistent in enforcing regional model IDs While all `us` regions require prefixes like `us.anthropic***` in `eu` it's only required for some of the regions, and e.g. in `eu-west-2` a prefix-less model ID is required This PR aims to handle these cases and make sure OpenCode supports them better ## How was this tested? Ran opencode with `AWS_REGION=eu-west-2` with Claude 3 and made sure it works <img width="1030" alt="Screenshot 2025-06-27 at 22 50 31" src="https://github.com/user-attachments/assets/8dc0781b-c383-4115-b6c2-636a62879006" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:13:52 -05:00
yindo closed this issue 2026-02-16 18:13:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9626