/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

  1. Start a session on any model (e.g. claude-sonnet-4-6)
  2. 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

View original on GitHub ↗

7 Comments

philpav · 4 months ago

<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.

Menci · 4 months ago

A quick fix without patching the binary:

CLAUDE_CODE_EXTRA_BODY='{"thinking":{"type":"adaptive"}}' claude hello
erwinw · 4 months ago

Had the same issue, updated Claude Code from 2.1.109 to 2.1.112 fixed the issue 🤷🏼‍♂️

nekketsuuu · 4 months ago

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.

ashwin-ant collaborator · 4 months ago

This was fixed in v2.1.111/model claude-opus-4-7 now 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.

nekketsuuu · 4 months ago

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.

github-actions[bot] · 4 months ago

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.