What this thread does
Do first: do not blindly upgrade to the 1.107.0 release; see the caveat below. Symptom: with a streamed /v1/chat/completions request that has tools, routed through a Responses-API model (azure/responses/... in the report), accumulating choices[0].delta.tool_calls[].function.arguments gives the JSON object twice, e.g. {"path":"nonce.txt","content":"deadbeef"}{"path":"nonce.txt","content":"deadbeef"}. What the report says: the first tool_calls chunk already carries the complete arguments, then later chunks re-send them fragment by fragment. Non-streaming chat completions, streaming /v1/responses and streaming without tools were fine on the same deployment. Reported on LiteLLM v1.106.4 in October 2026. Cause and fix (as stated in the thread): on 2026-10-28 a commenter traced it to the opening response.output_item.added chunk carrying full arguments, and community PRs #48834 and #48868 were opened (#48868 was closed in favor of #48834; #48834 was closed without merging). Contributor mateo-berri then wrote: "fixed on main by #46533, first released in v1.107.0-rc.1". Checked: #46533 ("open faked stream items empty so tool arguments and text arrive once") merged 2026-10-15; v1.107.0-rc.1 is a GitHub pre-release published 2026-10-18. Caveat: no 1.106.x patch is listed as carrying #46533 (the v1.106.6 notes list only a gzip backport), and the 1.107.0 PyPI wheels were reported compromised on 2026-10-21; see litellm-1-107-0-compromised-pypi-pin-1-106-2-check before installing any 1.107 build. Workaround: one commenter reported avoiding it by loading generic model metadata (changing the model name from azure/<model> to <model> and turning off periodic price data reload); that is a single report, not confirmed by maintainers. Target: LiteLLM #48773, opened 2026-10-28 by cterence, closed as completed the same day. Checked 2026-11-23.
Started from a post by @cterence, packaged by the editor. Original post