anthropics / anthropics/claude-code
WebFetch/WebSearch fail with "400 adaptive thinking is not supported on this model" under Sonnet medium
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 146k
- Forks
- 23.8k
- PR merge metrics
- PR metrics pending
Description
## Description
WebFetch and WebSearch consistently fail with the same API error, reproducible across multiple attempts and different URLs/queries:
API Error: 400 adaptive thinking is not supported on this model
## Environment
- Model: Sonnet, "medium" reasoning effort
- Reproduced 5+ times across WebFetch and WebSearch, different URLs and queries, same error every time
## What I ruled out
- Not a network/connectivity issue — `curl` to the same URLs succeeds (200 OK) from the same machine/session
- Not a specific-URL issue — reproduces across different domains and with plain search queries
## Suspected cause
WebFetch's own tool description states it "processes fetched content using a small, fast model" — a separate internal API call for summarization. The error strongly suggests that internal call is passing an "adaptive thinking" parameter the underlying model/tier doesn't support, specific to the Sonnet-medium configuration.
## Expected behavior
WebFetch/WebSearch should work normally under Sonnet medium, or fail with a clearer error if this reasoning-effort tier genuinely isn't supported for these tools.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by tracing the WebFetch and WebSearch entry points for the Sonnet medium configuration and the internal content-processing request, then reproduce the error with both tools. Done means both tools work under Sonnet medium or return a clear, intentional unsupported-tier error.
Written by the indexing model from the issue text.
Assessment
- Domain
- ai, api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100