mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-05 01:59:27 +00:00
* feat(websearch_interception): accept "*" in enabled_providers and treat an empty list as the Bedrock default A "*" entry turns web search interception on for every provider, so a gateway in front of many providers no longer has to list each one. A YAML enabled_providers: [] now falls back to Bedrock, matching the Admin UI path and the docstring, instead of intercepting nothing Builds on #55470 Co-authored-by: CrypticDriver <107245892+CrypticDriver@users.noreply.github.com> * test(websearch_interception): cover "*" at every interception point The pre-request hook, the web-search-only short-circuit and the chat and Responses loops each read enabled_providers, and none of them had a "*" test, so putting the old membership check back in any of them still passed * fix(websearch_interception): match an LlmProviders enum in the pre-request hook The pre-request hook turned the provider into a string with str(), which gives 'LlmProviders.BEDROCK' for the enum an SDK caller can pass. The deployment hook had already converted the web search tool, so the request reached Bedrock with a function tool and got a 400 instead of an intercepted search --------- Co-authored-by: CrypticDriver <107245892+CrypticDriver@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| test_websearch_agentic_loop_cap.py | ||
| test_websearch_chat_completion.py | ||
| test_websearch_interception_handler.py | ||
| test_websearch_interception_thinking.py | ||
| test_websearch_native_blocks.py | ||
| test_websearch_responses.py | ||
| test_websearch_rich_query_shape.py | ||
| test_websearch_short_circuit.py | ||
| test_websearch_streaming_wrap.py | ||
| test_websearch_thinking_constraint.py | ||