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

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

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

State: open
Merged: No


Summary

  • Extend crossRegionPrefixes in getSmallModel() to include "jp.", "apac.", and "au.", matching what getModel() already supports
  • Add region mapping logic for APAC regions: ap-northeast-1 -> jp., ap-southeast-2/ap-southeast-4 -> au., other ap-* -> apac.

Closes #12824

Test plan

  • Verify getSmallModel() resolves correctly for ap-northeast-1 (Tokyo) region with jp. prefix
  • Verify getSmallModel() resolves correctly for ap-southeast-2 and ap-southeast-4 (Australia) with au. prefix
  • Verify getSmallModel() resolves correctly for other ap-* regions with apac. prefix
  • Verify existing us. and eu. region behavior is unchanged
  • Verify global. prefix still takes priority
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12919 **State:** open **Merged:** No --- ## Summary - Extend `crossRegionPrefixes` in `getSmallModel()` to include `"jp."`, `"apac."`, and `"au."`, matching what `getModel()` already supports - Add region mapping logic for APAC regions: `ap-northeast-1` -> `jp.`, `ap-southeast-2`/`ap-southeast-4` -> `au.`, other `ap-*` -> `apac.` Closes #12824 ## Test plan - [ ] Verify `getSmallModel()` resolves correctly for `ap-northeast-1` (Tokyo) region with `jp.` prefix - [ ] Verify `getSmallModel()` resolves correctly for `ap-southeast-2` and `ap-southeast-4` (Australia) with `au.` prefix - [ ] Verify `getSmallModel()` resolves correctly for other `ap-*` regions with `apac.` prefix - [ ] Verify existing `us.` and `eu.` region behavior is unchanged - [ ] Verify `global.` prefix still takes priority
yindo added the pull-request label 2026-02-16 18:19:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14435