Skip to content

fix(core): route Bedrock packages natively - #40165

Merged
rekram1-node merged 2 commits into
v2from
bedrock-native-routing
Aug 2, 2026
Merged

rekram1-node merged 2 commits into
v2from
bedrock-native-routing

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • map @ai-sdk/amazon-bedrock catalog entries to the native Bedrock Converse provider
  • always map @ai-sdk/amazon-bedrock/mantle entries to the native Mantle Chat or Responses provider
  • remove credential availability as a condition for native Mantle routing
  • preserve serializable Bedrock provider settings: endpoint, auth, region, static credentials, headers, and topP
  • project Converse request options into the native request body, including additional model fields, reasoning configuration, Anthropic betas, and service tier
  • preserve supported OpenAI request options for Mantle

Runtime-only AI SDK hooks such as custom fetch and credentialProvider functions are intentionally not projected into serializable native provider settings.

This change does not expand regional URL templates; that is left for a separate change.

Verification

  • cd packages/core && bun typecheck
  • cd packages/core && bun test test/aisdk-native.test.ts test/model-resolver.test.ts

Requested by: @rekram1-node (Aiden Cline via Slack)

@rekram1-node
rekram1-node merged commit dd01412 into v2 Aug 2, 2026
10 checks passed
@rekram1-node
rekram1-node deleted the bedrock-native-routing branch August 2, 2026 16:47
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant