[BUG] Error 400 ""thinking.type.enabled" is not supported for this model" still exists in 2.1.113 when used with Opus 4.7 in Bedrock
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
2.1.113 changelog claims to have fixed the error. However, using a Bedrock custom application profile based on Opus 4.7 still fails just like it did with 2.1.112:
hi
⎿ API Error: 400
{"type":"error","request_id":"req_txjtk5tatvmot5cmubv5hf3ulq2zsqyjhf3jwip2e5tt4lu6dsyq","error":{"type":"invalid_request_error","message":"\"thinking.type.enabled\"
is not supported for this model. Use \"thinking.type.adaptive\" and \"output_config.effort\" to control thinking behavior."}}
Tried this with and without ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES=effort,xhigh_effort,max_effort,thinking,adaptive_thinking,interleaved_thinking
2.1.114 also has this problem.
What Should Happen?
Claude Code should function normally
Error Messages/Logs
Steps to Reproduce
- Configure an application inference profile in Bedrock based on the Opus 4.7
- Set AWS_PROFILE=x, CLAUDE_CODE_USE_BEDROCK=1, ANTHROPIC_MODEL='arn:...'
- Launch Claude Code, prompt it anything
Claude Model
Opus
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.113
Platform
AWS Bedrock
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 10 comments on GitHub. Read the full discussion on GitHub ↗