litellm/tests/test_litellm/integrations/websearch_interception
Devin AI 01f94ac876 fix: pass search tool credentials to litellm.asearch() in websearch interception
_execute_search was extracting only search_provider from the matched
search tool's litellm_params but silently dropping api_key, api_base,
and timeout. This meant user-configured credentials (e.g. EXA_API_KEY
via os.environ/) were never forwarded to the actual search call,
causing auth failures for providers that require explicit API keys.

Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>
2026-06-30 12:07:31 +00:00
..
test_websearch_chat_completion.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_websearch_interception_handler.py fix: pass search tool credentials to litellm.asearch() in websearch interception 2026-06-30 12:07:31 +00:00
test_websearch_interception_thinking.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_websearch_native_blocks.py Emit native web_search_tool_result blocks for Anthropic clients (Claude Desktop / Cowork citations) (#27886) 2026-05-14 12:30:47 -07:00
test_websearch_short_circuit.py Emit native web_search_tool_result blocks for Anthropic clients (Claude Desktop / Cowork citations) (#27886) 2026-05-14 12:30:47 -07:00
test_websearch_streaming_wrap.py fix(websearch): wrap agentic loop response in fake stream for streaming requests (#31484) 2026-06-26 18:45:53 -07:00
test_websearch_thinking_constraint.py Emit native web_search_tool_result blocks for Anthropic clients (Claude Desktop / Cowork citations) (#27886) 2026-05-14 12:30:47 -07:00