Anthropic rejects duplicate websearch tool names When LibreChat web search and…
- User
Anthropic rejects duplicate web_search tool names
When LibreChat web search and Anthropic-native web search are both enabled, expose one
web_searchtool and prefer LibreChat's definition. Do not affect unrelated tools or other providers.Interface
No new public interfaces are introduced.
- Assistant
I’ll trace the Anthropic tool assembly path, read the repository instructions, then add a narrowly scoped deduplication and regression tests.
- Assistant
The duplicate is created in the agent initializer: Anthropic-native tools are appended to LibreChat’s loaded tools. I found the provider-specific merge point, so the fix can remain isolated to Anthropic without changing tool loading elsewhere.
- Assistant
The regression test currently can’t start because the local
librechat-data-providerworkspace build is missing, not because of the change. I’m rebuilding that workspace locally, then I’ll rerun the focused test and type checks. - Assistant
The focused suite now passes all 36 tests, including both full-tool and event-driven definition paths. The regression also verifies that unrelated Anthropic tools remain and that identical behavior on OpenAI is untouched; I’m doing the final lint/build verification now.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.