Skip to content

feat: add 1M context window support for Bedrock Anthropic models#197

Open
taigrr wants to merge 3 commits intocharmbracelet:mainfrom
taigrr:feat/1m-context
Open

feat: add 1M context window support for Bedrock Anthropic models#197
taigrr wants to merge 3 commits intocharmbracelet:mainfrom
taigrr:feat/1m-context

Conversation

@taigrr
Copy link

@taigrr taigrr commented Feb 27, 2026

Summary

  • Adds Betas field to Model struct for specifying beta features
  • Adds 1M context model variants for Claude Sonnet 4, Sonnet 4.5, and Opus 4.6
  • Each 1M model includes "betas": ["context-1m-2025-08-07"]
  • Updated pricing for 1M models (2x input, 1.5x output for >200k tokens)

Related PRs

Test plan

  • go build ./... passes
  • go test ./... passes

- Add Betas field to Model struct for specifying beta features
- Add 1M context model variants for Claude Sonnet 4, Sonnet 4.5, and Opus 4.6
- Each 1M model includes "context-1m-2025-08-07" beta header
- Updated pricing for 1M models (2x input, 1.5x output for >200k tokens)

🐊 Generated with Crush

Assisted-by: AWS Claude Opus 4.5 via Crush <crush@charm.land>
@taigrr taigrr requested a review from a team as a code owner February 27, 2026 06:50
@taigrr taigrr requested review from andreynering and aymanbagabas and removed request for a team February 27, 2026 06:50
The us. prefix enables cross-region inference which is required for
1M context window support. The :1m suffix was not a valid model ID format.

🐊 Generated with Crush

Assisted-by: AWS Claude Opus 4.5 via Crush <crush@charm.land>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant