Skip to content

Conversation

@roomote
Copy link
Contributor

@roomote roomote bot commented Sep 29, 2025

Description

This PR addresses Issue #8381 by adding support for the 1M context window checkbox for Claude 3.5 Sonnet v2 (anthropic.claude-sonnet-4-5-20250929-v1:0) in the AWS Bedrock provider settings, matching the existing functionality available for Claude 3.5 Sonnet v1.

Changes

  • Added constant for the newer Claude 3.5 Sonnet v2 model
  • Updated Bedrock.tsx UI component to show the 1M context checkbox for both Sonnet models
  • Updated bedrock.ts provider to handle 1M context for both models
  • Updated useSelectedModel hook to apply 1M context for both models

Testing

  • ✅ All existing tests pass
  • ✅ Bedrock provider tests pass
  • ✅ Bedrock UI component tests pass
  • ✅ useSelectedModel hook tests pass
  • ✅ Linting and type checking pass

Screenshots

The 1M context window checkbox will now appear when selecting Claude 3.5 Sonnet v2 in the Bedrock provider settings, just like it does for v1.

Fixes #8381


Important

Adds support for 1M context window for Claude 3.5 Sonnet v2 in Bedrock provider, updating UI and logic to match v1 functionality.

  • Behavior:
    • Adds support for 1M context window for Claude 3.5 Sonnet v2 in Bedrock provider, similar to v1.
    • Updates Bedrock.tsx to show 1M context checkbox for both Sonnet models.
    • Updates bedrock.ts to handle 1M context for both models.
    • Updates useSelectedModel hook to apply 1M context for both models.
  • Constants:
    • Adds BEDROCK_CLAUDE_SONNET_4_5_MODEL_ID constant in bedrock.ts.
  • Testing:
    • All existing tests pass, including Bedrock provider, UI component, and useSelectedModel hook tests.

This description was created by Ellipsis for 5d5182b. You can customize this summary. It will automatically update as commits are pushed.

…ck provider

- Added BEDROCK_CLAUDE_SONNET_4_5_MODEL_ID constant for the newer model
- Updated Bedrock.tsx UI component to show 1M context checkbox for both Sonnet models
- Updated bedrock.ts provider to handle 1M context for both models
- Updated useSelectedModel hook to apply 1M context for both models

Fixes #8381
@roomote roomote bot requested review from cte, jr and mrubens as code owners September 29, 2025 20:32
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. enhancement New feature or request labels Sep 29, 2025
@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Sep 29, 2025
@daniel-lxs daniel-lxs closed this Oct 14, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Oct 14, 2025
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. size:S This PR changes 10-29 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[BUG] Sonnet 4.5 w/ Bedrock provider does not have 1M context window checkbox

4 participants