Skip to content

Conversation

@rhtnr
Copy link

@rhtnr rhtnr commented Dec 1, 2025

Add support for AWS Bedrock Claude models with 1 million token context window by appending [1m] suffix to model names.

Changes:

  • Add parse_context_window_suffix() to parse [1m] suffix from model names
  • Automatically add anthropic-beta: context-1m-2025-08-07 header for Bedrock Claude models when [1m] suffix is used
  • Add model metadata for us.anthropic.claude-sonnet-4-20250514-v1:0
  • Add tests for context window suffix parsing and header application

Usage:
aider --model us.anthropic.claude-sonnet-4-20250514-v1:0[1m] aider --model bedrock/us.anthropic.claude-sonnet-4-20250514-v1:0[1m]

Add support for AWS Bedrock Claude models with 1 million token context
window by appending [1m] suffix to model names.

Changes:
- Add parse_context_window_suffix() to parse [1m] suffix from model names
- Automatically add anthropic-beta: context-1m-2025-08-07 header for
  Bedrock Claude models when [1m] suffix is used
- Add model metadata for us.anthropic.claude-sonnet-4-20250514-v1:0
- Add tests for context window suffix parsing and header application

Usage:
  aider --model us.anthropic.claude-sonnet-4-20250514-v1:0[1m]
  aider --model bedrock/us.anthropic.claude-sonnet-4-20250514-v1:0[1m]
@CLAassistant
Copy link

CLAassistant commented Dec 1, 2025

CLA assistant check
All committers have signed the CLA.

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.

2 participants