[PR #12868] fix(provider): add APAC cross-region prefixes for AWS Bedrock #14409

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

Original Pull Request: https://github.com/anomalyco/opencode/pull/12868

State: closed
Merged: No


Summary

  • Synced crossRegionPrefixes in getSmallModel() with getModel() by adding the missing jp., apac., and au. entries
  • Added APAC region handling (ap-northeast-1 -> jp., ap-southeast-2/ap-southeast-4 -> au., other ap-* -> apac.) to the region check logic in getSmallModel(), matching the existing behavior in the Bedrock custom loader's getModel

Fixes #12824

Test plan

  • Verify small model selection with ap-northeast-1 (Tokyo) region resolves to jp. prefix
  • Verify small model selection with ap-southeast-2 (Sydney) region resolves to au. prefix
  • Verify small model selection with other APAC regions resolves to apac. prefix
  • Verify us and eu region behavior is unchanged
  • Verify global. prefix models are still preferred first
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12868 **State:** closed **Merged:** No --- ## Summary - Synced `crossRegionPrefixes` in `getSmallModel()` with `getModel()` by adding the missing `jp.`, `apac.`, and `au.` entries - Added APAC region handling (`ap-northeast-1` -> `jp.`, `ap-southeast-2`/`ap-southeast-4` -> `au.`, other `ap-*` -> `apac.`) to the region check logic in `getSmallModel()`, matching the existing behavior in the Bedrock custom loader's `getModel` Fixes #12824 ## Test plan - [ ] Verify small model selection with `ap-northeast-1` (Tokyo) region resolves to `jp.` prefix - [ ] Verify small model selection with `ap-southeast-2` (Sydney) region resolves to `au.` prefix - [ ] Verify small model selection with other APAC regions resolves to `apac.` prefix - [ ] Verify `us` and `eu` region behavior is unchanged - [ ] Verify `global.` prefix models are still preferred first
yindo added the pull-request label 2026-02-16 18:19:12 -05:00
yindo closed this issue 2026-02-16 18:19:12 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14409