fix(translator): preserve Anthropic web search tools - #2355
Open
0YHR0 wants to merge 1 commit into
Open
Conversation
Signed-off-by: Yang Haoran <97868579@qq.com>
0YHR0
force-pushed
the
fix/anthropic-web-search-tool-2124
branch
from
August 2, 2026 08:02
c04f6e5 to
e3d6323
Compare
Contributor
Author
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2355 +/- ##
=======================================
Coverage 85.05% 85.06%
=======================================
Files 159 159
Lines 22645 22653 +8
=======================================
+ Hits 19261 19269 +8
Misses 2217 2217
Partials 1167 1167 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Description
Preserve Anthropic's
web_search_20260209tool when an OpenAI-compatible chat-completions request is routed to an Anthropic backend. The translator now retains the tool name and maps it to Anthropic's built-in web search parameter instead of silently dropping it.Fixes #2124
Testing