sub2api icon indicating copy to clipboard operation
sub2api copied to clipboard

[Bug] Claude Code: WebSearch injects unsupported max_tool_calls parameter

Open TopologyApplied opened this issue 3 months ago • 0 comments

environment: GPT 5.6 Sol Oauth + sub2api v0.1.184 + CC Switch v3.20.1 (with routing) + Claude Code v2.1.251

In Claude Code, Input Prompt: "Use WebSearch once to search for today's OpenAI news. "

● Web Search("OpenAI news today August 31 2026 latest announcements developments") ⎿  Error: API Error: 400 Unsupported parameter: max_tool_calls

● SendFeedback(WebSearch injects unsupported max_tool_calls parameter)

● I used WebSearch exactly once, but it failed with:

▎ API Error: 400 Unsupported parameter: max_tool_calls

No search results were returned, and I did not retry because you specified one WebSearch call.

※ recap: The goal was to search today’s OpenAI news using WebSearch exactly once, but the search returned no results due to an API error. Next, decide whether to permit another search attempt.

Type: bug Title: WebSearch injects unsupported max_tool_calls parameter Area: WebSearch Failure mode: other Task: search Details: │ - What happened: A single WebSearch call failed with API Error: 400 Unsupported parameter: max_tool_calls; expected current OpenAI news results. │ - What user said: “Use WebSearch once to search for today's OpenAI news.” │ - Repro: Load deferred WebSearch via ToolSearch, then call WebSearch once with a normal query and empty domain filters. │ - Evidence: Date 2026-08-31; query OpenAI news today August 31 2026 latest announcements developments.

TopologyApplied avatar Aug 31 '26 04:08 TopologyApplied