Repository navigation
docs(anthropic_tool_search): document OpenAI tool_search on Claude models through /v1/responses - #2701
Merged
Conversation
…dels through /v1/responses
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
bugbot run |
Contributor
Author
|
bugbot run |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since BerriAI/litellm#45882 (first in v1.107.0-rc.1),
/v1/responsesturns OpenAI'stool_searchtool into Anthropic's regex tool search tool for Claude 4.5 and newer, but no page says so. The tool search page lists only Chat Completions and Messages, and the Responses API page says tool search needsgpt-5.4or later, so a reader would expect Claude to drop the toolThis adds a "Responses API" section to the Claude tool search page. It covers what the proxy translates, the
tool_search_callitem it returns (streaming too), follow-up turns, which routes run it, and what is not translated (client execution andtool_search_output). It also adds a Responses API column to the support table and a link from the OpenAI Responses API pageDecisions
The section goes on the Claude tool search page, since a reader who wants Claude to search tools looks there first, and the OpenAI page only links to it. The curl request is case 1 from the #45882 proof, and the response and SDK example come from a live run on litellm main today
The page says client execution with every tool deferred gets Anthropic's 400
All tools cannot be deferred., since the live run shows that answer, and it says a follow-up answer can mention calling a tool without a search, since Claude never sees the dropped search call (#45882's decisions, and turn 2 below)User Flow
Before: the reader finds nothing that says Claude takes
tool_searchon/v1/responsesgpt-5.4or laterAfter: the reader sends the documented request to Claude and gets the documented output
tool_search_callandfunction_callitems the page showsProof
A no-DB proxy at litellm main a66dc50efb on a random port, with the section's config and
anthropic/claude-sonnet-5-5, real Anthropic calls, 2026-10-29 UTC.Hholds the auth and JSON headersThe Azure, Vertex AI, Bedrock Invoke, and Bedrock Converse rows come from #45882's live proof (cases 27, 12, 7, and 6), and the route gate is
_without_unsupported_tool_searchinlitellm/responses/litellm_completion_transformation/transformation.pyon main.scripts/check-docs.py docsandscripts/check-writing-style.jspassCaveats
Low. Bugbot did not review this PR. A bare
bugbot runposted after the last commit got no reaction and no check run within three minutes, so the review is unavailable on this repo today