anthropics / anthropics/claude-code

WebFetch/WebSearch fail with "400 adaptive thinking is not supported on this model" under Sonnet medium

Open
#95,497 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:api area:tools bug
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.