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

fix(core): route Bedrock packages natively#40165
rekram1-node merged 2 commits into
v2from
bedrock-native-routing

Conversation

@opencode-agent

@opencode-agentopencode-agentBot 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 v2Aug 2, 2026
10 checks passed
@rekram1-node
rekram1-node deleted the bedrock-native-routing branch August 2, 2026 16:47
github-actionsBot pushed a commit to ReStranger/opencode that referenced this pull request Aug 3, 2026
* upstream/v2:
test(core): stabilize shell integration timing (anomalyco#40084)
fix(core): route Bedrock packages natively (anomalyco#40165)
feat(ai): add native Bedrock Mantle support (anomalyco#40119)
fix(tui): reserve home and end for navigation (anomalyco#40123)
refactor(ai): align multimodal naming (anomalyco#40073)
refactor(tui): remove redundant code (anomalyco#40081)
fix(tui): discover plugins across config roots (anomalyco#39988)
fix(tui): make vertical tabs responsive (anomalyco#40080)
feat(tui): add vertical session tabs (anomalyco#40072)
fix: preserve provider error status (anomalyco#39976)
fix(tui): prevent sidebar scrollbar flash (anomalyco#40056)
feat(tui): prioritize favorite model search results (anomalyco#40049)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@rekram1-node