mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-06 02:09:04 +00:00
* fix(responses): replay tool calls a client answers in managed WebSocket history The managed Responses WebSocket kept only messages and function calls when it stored a turn for previous_response_id replay, so a custom tool call (Codex code mode exec) was dropped and the provider rejected the next turn's custom_tool_call_output. Every output item carrying a call_id is now replayed. * fix(responses): replay MCP approval requests in managed WebSocket history A client answers an mcp_approval_request by its id rather than a call_id, so the call_id rule dropped it and providers rejected the approval response on the next turn. Also pins that items no later turn answers stay out of the replay. * test(responses): pin replay of server tool search items that carry a call_id * fix(responses): replay the MCP call that used an approval so the tool does not run again * fix(responses): replay an MCP call only when the client sent its approval * fix(responses): keep the session alive when a replayed output item has a non-string type or approval id * fix(responses): replay a tool call cut off by an incomplete turn only when the next turn answers it * fix(responses): keep a call and its output that both finished before an incomplete turn ended --------- Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| file_search | ||
| litellm_completion_transformation | ||
| mcp | ||
| additional_tools.py | ||
| bridge_check.py | ||
| dispatch.py | ||
| input_items_query.py | ||
| instructions_length.py | ||
| main.py | ||
| retrieve_stream_query.py | ||
| sse_output_recovery.py | ||
| streaming_iterator.py | ||
| utils.py | ||