#19728 [Bug]: Claude Code fails when invoking the Tavily search tool through an OpenAI-compatible endpoint
### Check for existing issues
- [x] I have searched the existing issues and checked that my issue is not a duplicate.
### What happened?
when i use claude code to search like "Research the latest developments in quantum computing", show error.
The model is provided by a third party, and I've integrated it via the OpenAI API format. It works fine for basic tasks within Claude Code, but I encounter the error mentioned above whenever I try to use the search function.
### Steps to Reproduce
The Config yaml like
``` litellm_settings: request_timeout: 600 # raise Timeout error if call takes longer than 600 seconds. Default value is 6000seconds if not set set_verbose: False # Switch off Debug Logging, ensure your logs do not have any debugging on callbacks: - "custom_guardrail.plugin_handle_instance" - "langfuse" drop_params: true
callback_settings: websearch_interception: enabled_providers: ["bedrock", "azure", "vertex_ai", "openai"] search_tool_name: tavily-search search_tools: - search_tool_name: tavily-search litellm_params: search_provider: tavily api_key: ****** ```
### Relevant log output
```shell 22:45:46 - LiteL…