[PR #7053] fix(provider): add jp. prefix auto-assignment for Tokyo region (ap-northeast-1) #12227

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

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

State: closed
Merged: Yes


Summary

Add automatic jp. prefix assignment for Amazon Bedrock cross-region inference when using Tokyo region (ap-northeast-1).

Currently, the APAC region case uses apac. prefix for all AP regions, but Tokyo region requires jp. prefix for cross-region inference profiles.

Changes

  • Add isTokyoRegion check in the case "ap" block
  • Tokyo region (ap-northeast-1) → uses jp. prefix
  • Other APAC regions → continue using apac. prefix

Test

Tested with GitHub Actions workflow using:

  • Model: amazon-bedrock/anthropic.claude-sonnet-4-5-20250929-v1:0 (without prefix)
  • Region: ap-northeast-1
  • Result: Successfully called Bedrock API with auto-prefixed jp.anthropic.claude-sonnet-4-5-20250929-v1:0

Related

This complements the existing cross-region prefix skip logic (merged in #6916) by providing automatic prefix assignment for Tokyo region users.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7053 **State:** closed **Merged:** Yes --- ## Summary Add automatic `jp.` prefix assignment for Amazon Bedrock cross-region inference when using Tokyo region (`ap-northeast-1`). Currently, the APAC region case uses `apac.` prefix for all AP regions, but Tokyo region requires `jp.` prefix for cross-region inference profiles. ## Changes - Add `isTokyoRegion` check in the `case "ap"` block - Tokyo region (`ap-northeast-1`) → uses `jp.` prefix - Other APAC regions → continue using `apac.` prefix ## Test Tested with GitHub Actions workflow using: - Model: `amazon-bedrock/anthropic.claude-sonnet-4-5-20250929-v1:0` (without prefix) - Region: `ap-northeast-1` - Result: Successfully called Bedrock API with auto-prefixed `jp.anthropic.claude-sonnet-4-5-20250929-v1:0` ## Related This complements the existing cross-region prefix skip logic (merged in #6916) by providing automatic prefix assignment for Tokyo region users.
yindo added the pull-request label 2026-02-16 18:17:09 -05:00
yindo closed this issue 2026-02-16 18:17:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12227