/model claude-opus-4-7 fails with "thinking.type.enabled" not supported error
Status Fixed / completed
Reported on v2.1.110
Maintainer reply ✓ Yes — ashwin-ant
Activity 7 comments · opened Apr 16, 2026 · closed Apr 18, 2026
💡 Likely answer: A maintainer (ashwin-ant, collaborator)
responded on this thread — see the highlighted reply below.
Description
Switching to claude-opus-4-7 via the /model command fails with an API error about an unsupported thinking config format.
Error
API Error: 400 {"type":"error","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."},"request_id":"req_011Ca7eP18tycjccNePYz3Wy"}
Steps to reproduce
- Start a session on any model (e.g.
claude-sonnet-4-6) - Run
/model claude-opus-4-7
Expected behavior
Model switches successfully.
Actual behavior
400 error — the harness appears to be sending thinking: { type: "enabled" } in the API request, but claude-opus-4-7 requires thinking: { type: "adaptive" } with output_config.effort instead.
Environment
- Claude Code version: 2.1.110
- OS: macOS Darwin 25.3.0
7 Comments
<img width="873" height="287" alt="Image" src="https://github.com/user-attachments/assets/38a7eb65-d1a9-4cc8-ba21-1dc75723f7c7" />
That's what happens in WSL on Windows 10.
A quick fix without patching the binary:
Had the same issue, updated Claude Code from 2.1.109 to 2.1.112 fixed the issue 🤷🏼♂️
I've encountered this API error with Amazon Bedrock application inference profile for Claude Opus 4.7, with Claude Code v2.1.112 on macOS.
This was fixed in v2.1.111 —
/model claude-opus-4-7now sends the correct adaptive-thinking parameter instead of failing with a 'thinking.type.enabled not supported' error. If you're still seeing this in the latest version, please comment with your version and repro and we'll reopen.https://github.com/anthropics/claude-code/issues/49219#issuecomment-4266667356
This has also been fixed for application inference profiles of Bedrock. I've confirmed it works with v2.1.114. Thanks.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.