mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-29 06:33:28 +00:00
* fix(websearch): strip Claude Code instructional prefix in short-circuit search Signed-off-by: agustin18 <agustinsaiz02@gmail.com> * fix(websearch): preserve quotes for unwrapped search queries Signed-off-by: agustin18 <agustinsaiz02@gmail.com> * test(websearch): replace mock with pure unit tests and cover empty queries Signed-off-by: agustin18 <agustinsaiz02@gmail.com> * style(websearch): fix ruff formatting blank line in handler Signed-off-by: agustin18 <agustinsaiz02@gmail.com> * refactor(websearch): enforce Final annotations, prevent rebinding, and retain e2e coverage Signed-off-by: agustin18 <agustinsaiz02@gmail.com> * test(websearch): assert server_tool_use block unconditionally Signed-off-by: agustin18 <agustinsaiz02@gmail.com> * fix(websearch): search only the query inside Claude Code's web search prompt Match Claude Code's exact "Perform a web search for the query:" prefix instead of a broad regex family, keep any quotes the user typed so exact-phrase searches still work, and test the search request at the HTTP boundary. --------- Signed-off-by: agustin18 <agustinsaiz02@gmail.com> Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| __init__.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 | ||