Merge pull request #1920 from Wuxie233/fix/responses-web-search-tool-types

fix(apicompat): recognize web_search_20250305 / google_search in Responses→Anthropic tool conversion
This commit is contained in:
Wesley Liddick
2026-04-25 09:00:37 +08:00
committed by GitHub

View File

@@ -390,7 +390,7 @@ func convertResponsesToAnthropicTools(tools []ResponsesTool) []AnthropicTool {
var out []AnthropicTool
for _, t := range tools {
switch t.Type {
case "web_search":
case "web_search", "google_search", "web_search_20250305":
out = append(out, AnthropicTool{
Type: "web_search_20250305",
Name: "web_search",