Skip to content

fix(amazon-bedrock): pin Mantle model endpoints to us-east-1 - #4819

Closed
nabilfreeman wants to merge 1 commit into
anomalyco:devfrom
nabilfreeman:bedrock-mantle-pin-us-east-1
Closed

nabilfreeman wants to merge 1 commit into
anomalyco:devfrom
nabilfreeman:bedrock-mantle-pin-us-east-1

Conversation

@nabilfreeman

@nabilfreeman nabilfreeman commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Closes part of #4818.

These six Mantle entries template their endpoint on ${AWS_REGION}, but Mantle only serves them in some US regions. Outside those, the URL resolves to a host that 404s with no hint that region is the cause:

POST bedrock-mantle.eu-west-1.api.aws/openai/v1/responses {"model":"openai.gpt-5.6-terra"}
  → 404 The model 'openai.gpt-5.6-terra' does not exist
POST bedrock-mantle.us-east-1.api.aws/openai/v1/responses  (same body)
  → 200

I checked all six against both regions and they show the same split: gpt-5.6-terra, gpt-5.6-luna, gpt-5.6-sol, openai.gpt-5.4, openai.gpt-5.5 and xai.grok-4.3.

us-east-1 serves every Mantle model, so it's the most compatible pin, and it matches the US East in-region pricing these files already declare (Bedrock pricing). The cost is a bit of routing loss for anyone currently in us-east-2 or us-west-2.

The openai.gpt-oss-* entries are untouched — gpt-oss-120b answers in both regions, so ${AWS_REGION} is right there.

bun validate passes.

@github-actions

Copy link
Copy Markdown
Contributor

No actionable findings.

@github-actions

Copy link
Copy Markdown
Contributor

Closing this pull request as stale because it has not been updated in 30 days. Feel free to reopen it or submit a new pull request if the work is resumed.

@github-actions github-actions Bot closed this Sep 16, 2026
@nabilfreeman

Copy link
Copy Markdown
Contributor Author

Retested on 1 October 2026 with OpenCode 1.18.34, which pins @ai-sdk/amazon-bedrock 4.0.166, using the existing eu-west-1 provider configuration and no local model endpoint overrides.

All three catalog routes now work end to end:

  • amazon-bedrock/global.openai.gpt-5.6-luna
  • amazon-bedrock/global.openai.gpt-5.6-sol
  • amazon-bedrock/global.openai.gpt-5.6-terra

Each completed a streamed request with --variant high, a bash tool call, the response after the tool result, and a separate follow-up conversation turn. All returned the expected answers without the previous stream-validation error.

The practical OpenCode blocker was resolved indirectly by two upstream changes: the global profiles added in #4827 (merged), and the AI SDK fix for Converse reasoningContent.redactedContent, including replay on subsequent turns: vercel/ai#19139. OpenCode now includes an SDK version containing that fix; see anomalyco/opencode#43686.

I have removed my local US Mantle endpoint overrides and will use the global.openai.gpt-5.6-* entries. This resolves my original need to access these models from eu-west-1 without endpoint patches. It does not establish that Mantle's regional availability or the unprefixed entries have changed; the global routes avoid that limitation.

This PR was already closed as stale and can remain closed. The endpoint-pinning proposal is no longer needed for my OpenCode setup; closing out #4818 with the results above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewer: ready Automated review found no actionable items

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant