fix(apicompat): recognize web_search_20250305 / google_search in Responses to Anthropic tool conversion
This commit is contained in:
@@ -390,7 +390,7 @@ func convertResponsesToAnthropicTools(tools []ResponsesTool) []AnthropicTool {
|
|||||||
var out []AnthropicTool
|
var out []AnthropicTool
|
||||||
for _, t := range tools {
|
for _, t := range tools {
|
||||||
switch t.Type {
|
switch t.Type {
|
||||||
case "web_search":
|
case "web_search", "google_search", "web_search_20250305":
|
||||||
out = append(out, AnthropicTool{
|
out = append(out, AnthropicTool{
|
||||||
Type: "web_search_20250305",
|
Type: "web_search_20250305",
|
||||||
Name: "web_search",
|
Name: "web_search",
|
||||||
|
|||||||
Reference in New Issue
Block a user