[PR #13200] fix(provider): split Bedrock Opus 4.6 into 200K and 1M variants #14556

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

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

State: open
Merged: No


Summary

  • split Bedrock Claude Opus 4.6 into explicit 200K and 1M Experimental variants at models.dev ingestion time (fromModelsDevProvider)
  • keep the base variant capped at 200K context and remove any anthropicBeta override from it
  • create a -1m variant with the same Bedrock api.id, force 1M context, and set anthropicBeta: [\"context-1m-2025-08-07\"]
  • do not apply this split to user-defined/custom config models
  • add tests that cover both behaviors (models.dev split + custom model no-split)

Related

Testing

  • PATH=\"$HOME/.bun/bin:$PATH\" ~/.bun/bin/bun test test/provider/provider.test.ts (pass)
  • full suite still has pre-existing unrelated failures in this environment (auth/timeouts in Bedrock + session/tool registry tests)
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13200 **State:** open **Merged:** No --- ## Summary - split Bedrock Claude Opus 4.6 into explicit `200K` and `1M Experimental` variants at **models.dev ingestion time** (`fromModelsDevProvider`) - keep the base variant capped at 200K context and remove any `anthropicBeta` override from it - create a `-1m` variant with the same Bedrock `api.id`, force 1M context, and set `anthropicBeta: [\"context-1m-2025-08-07\"]` - do **not** apply this split to user-defined/custom config models - add tests that cover both behaviors (models.dev split + custom model no-split) ## Related - Closes #13199 ## Testing - `PATH=\"$HOME/.bun/bin:$PATH\" ~/.bun/bin/bun test test/provider/provider.test.ts` (pass) - full suite still has pre-existing unrelated failures in this environment (auth/timeouts in Bedrock + session/tool registry tests)
yindo added the pull-request label 2026-02-16 18:19:20 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14556