fix: respect declared claude web search tool names

This commit is contained in:
sususu98
2026-04-29 19:24:53 +08:00
parent 1c0c426b85
commit 0d107dd566
2 changed files with 22 additions and 2 deletions
@@ -377,8 +377,6 @@ func buildClaudeWebSearchToolNameSet(tools gjson.Result) map[string]struct{} {
return true
}
names["web_search"] = struct{}{}
names[toolType] = struct{}{}
if name := tool.Get("name").String(); name != "" {
names[name] = struct{}{}
}