litellm/tests/unit/integrations/websearch_interception
Darsh Joshi ccd6ef8d44 fix(websearch_interception): honor allowed_domains and blocked_domains on web_search
The pre-request hooks swap the Anthropic web_search tool for litellm_web_search,
which dropped the domain fields, and the search ran without search_domain_filter.
The hooks now keep the domain filter on the request, allowed_domains is forwarded
as search_domain_filter, and results are filtered by URL host for every provider,
so providers that ignore the filter and blocked_domains are covered too

Fixes #44188
2026-10-02 19:30:26 -04:00
..
__init__.py test: move tests/test_litellm integrations and secret_managers into tests/unit (#43194) 2026-09-25 12:57:07 -07:00
test_websearch_agentic_loop_cap.py refactor(anthropic): rename experimental_pass_through to pass_through (#43329) 2026-09-26 13:00:50 -07:00
test_websearch_chat_completion.py fix(ci): stop stale CI reds, keep unit tests off the host env, retry CyberArk policy conflicts (#43294) 2026-09-26 09:25:13 -07:00
test_websearch_interception_handler.py fix(websearch_interception): honor allowed_domains and blocked_domains on web_search 2026-10-02 19:30:26 -04:00
test_websearch_interception_thinking.py test: move tests/test_litellm integrations and secret_managers into tests/unit (#43194) 2026-09-25 12:57:07 -07:00
test_websearch_native_blocks.py test: move tests/test_litellm integrations and secret_managers into tests/unit (#43194) 2026-09-25 12:57:07 -07:00
test_websearch_responses.py test: move tests/test_litellm integrations and secret_managers into tests/unit (#43194) 2026-09-25 12:57:07 -07:00
test_websearch_rich_query_shape.py test: move tests/test_litellm integrations and secret_managers into tests/unit (#43194) 2026-09-25 12:57:07 -07:00
test_websearch_short_circuit.py refactor(anthropic): rename experimental_pass_through to pass_through (#43329) 2026-09-26 13:00:50 -07:00
test_websearch_streaming_wrap.py refactor(anthropic): rename experimental_pass_through to pass_through (#43329) 2026-09-26 13:00:50 -07:00
test_websearch_thinking_constraint.py test: move tests/test_litellm integrations and secret_managers into tests/unit (#43194) 2026-09-25 12:57:07 -07:00