-
Notifications
You must be signed in to change notification settings - Fork 1.6k
AWS Bedrock does not show or support Sonnet and Opus 4 Extended Thinking #4201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @thatseant! I'm Dosu and I’m helping the Roo-Code team. Based on the latest documentation and release notes, Roo Code claims to support the Anthropic Claude Sonnet 4 and Opus 4 models with the :thinking (Extended Thinking) variant for Bedrock, Anthropic, and Vertex providers, as of version 3.18 and 3.18.1 [source][source]. However, the official Bedrock provider documentation and supported model lists do not mention any :thinking variants or extended thinking capabilities for these models—only the standard model IDs like There is no documentation or configuration guidance for enabling a :thinking variant or reasoning mode for Sonnet 4 via Bedrock. The model dropdown in Roo Code for Bedrock only lists the standard variants, and there is no mention of a "Max Thinking Tokens" or "Enable Reasoning Mode" option for Bedrock as there is for Anthropic direct or Vertex AI [source]. No issues or discussions were found in the documentation about this gap, and there is no detailed documentation about the referenced pull request (#3844) beyond the release note stating support was added. The absence of the :thinking variant in your Bedrock configuration appears to be a documentation or implementation gap: the release notes claim support, but the actual Bedrock provider and UI do not expose these variants. If you require the :thinking variant or extended reasoning features, you may need to use the Anthropic direct or Vertex AI providers, where these options are explicitly documented and available [source][source]. For Bedrock, the feature either has not been fully implemented, is not exposed by AWS, or is not yet surfaced in Roo Code's UI. If you need further clarification or a workaround, you may want to check for updates in future releases or reach out for clarification on whether AWS Bedrock currently exposes these variants and if Roo Code plans to support them in the UI. To reply, just mention my name @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Hi I'm able to enable reasoning to work successfully in a example app that use Bedrock API with following settings:
https://docs.aws.amazon.com/bedrock/latest/userguide/claude-messages-extended-thinking.html |
I make extended thinking work for me in my own fork, but I had to deal with several mismatches between current Bedrock implementation and AWS SDK. See more details in duplicate #4279 description. |
Great! Thanks @Litee Interested to see this move forward. From @Litee description in #4279: and in #1179: |
Hey y'all jumping in here as I move down the list, I had Roo do a deep dive too. Hope it helps! Roo Deep Dive: AWS Bedrock Extended Thinking (Revised)1. Problem SummaryThe core issue is that Roo Code does not support the "Extended Thinking" (also referred to as "reasoning") feature for Anthropic's Claude models (including Sonnet 4, Opus 4, and 3.7 Sonnet) when using AWS Bedrock as the API provider. This is a feature gap, as the underlying AWS Bedrock API does support it, and users expect this capability for complex tasks. This creates an inconsistency with the direct Anthropic provider integration, which has a visible "Enable Reasoning Mode" toggle. Related GitHub Issues:
2. Root Cause AnalysisThe investigation, combining user reports, official AWS documentation, and a codebase review, points to three primary root causes: 2.1. Missing API Payload ParametersThe current implementation for making requests to AWS Bedrock is missing critical parameters required to activate the extended thinking feature.
2.2. Incompatible Stream Processing LogicThe stream processing logic in
2.3. Incomplete Model & UI ConfigurationThe application lacks the necessary configuration to expose the extended thinking option to the user in the UI.
3. Areas for Investigation & ImplementationTo resolve this issue, an engineer will need to address the following areas: 3.1. Update Model Type Definitions
3.2. Modify API Request Payload
3.3. Refactor Stream Processing Logic
3.4. Update Frontend UI
4. Impact Analysis
5. Key Components for ReviewThe assigned engineer should pay close attention to the following files and functions during implementation and review:
|
✅ Fixed in PR #4481 I've implemented comprehensive Extended Thinking support for AWS Bedrock Claude models. The solution adds reasoning budget functionality (equivalent to "Enable Reasoning Mode") rather than separate :thinking model variants. Key Changes:
Result: PR: #4481 |
Uh oh!
There was an error while loading. Please reload this page.
App Version
v3.19.1
API Provider
AWS Bedrock
Model Used
Claude Sonnet 4
🔁 Steps to Reproduce
Configration shown here: List does not showing :thinking variant
💥 Outcome Summary
List of models does not show :thinking variants for Anthropic Models. This is contrary to what was stated in #3844
Typing in various prompts after selecting Sonnet 4 also never trigger reasoning/extended thinking.
Model should either show :thinking variant or should have Enable Reasoning Mode (Similar to Anthropic as Provider) with Max Thinking Tokens configuration
📄 Relevant Logs or Errors (Optional)
The text was updated successfully, but these errors were encountered: