litellm/tests/unit/integrations/websearch_interception
mateo-berri 63938d8b6f fix(messages): keep main's cleanup and web search short-circuit beside a non-string tool_result text
A non-string text inside a tool_result skipped the empty-block strip for the whole request on Python-path providers, and turned off the web search short-circuit. Both now run as on main, and only a top-level user text skips the short-circuit, since the route rejects or drops it

(cherry picked from commit 5f60fd84d0)

LTS adaptation: the source half is already this line's behavior, since
native_messages_to_send here never had the unstripped branch and the web
search handler here never gained the guard, so only the three tests are
ported, onto the pass_through paths.
2026-11-24 09:05:22 -08:00
..
__init__.py test: move tests/test_litellm integrations and secret_managers into tests/unit (#43194) 2026-09-25 12:57:07 -07:00
conftest.py test(tool-choice): adapt the picked tests to lts/1.108.x 2026-11-07 02:05:07 -08: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(allowed_tools): stop web search and code interpreter follow-ups forcing another call 2026-11-07 02:05:04 -08:00
test_websearch_interception_handler.py fix(websearch_interception): intercept the bare web_search tool type on chat completions (#46736) 2026-10-15 14:08:51 -07: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 chore(github_copilot): sync model catalog with Copilot's served models (#45386) 2026-10-09 15:19:08 -07:00
test_websearch_responses.py fix(allowed_tools): stop the Responses web search follow-up forcing another call 2026-11-07 02:05:07 -08: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 fix(messages): keep main's cleanup and web search short-circuit beside a non-string tool_result text 2026-11-24 09:05:22 -08: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