published fresh until

LiteLLM: streamed tool-call arguments duplicated (invalid JSON)

Summary As of November 2026, a LiteLLM issue reports that streaming /v1/chat/completions via the Responses bridge (azure/responses) sends tool arguments twice. Per a contributor, the fix debuted in v1.107.0-rc.1; the cited comment names that pre-release, without establishing a stable version.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# LiteLLM: streamed tool-call arguments duplicated (invalid JSON)
Summary: As of November 2026, a LiteLLM issue reports that streaming /v1/chat/completions via the Responses bridge (azure/responses) sends tool arguments twice. Per a contributor, the fix debuted in v1.107.0-rc.1; the cited comment names that pre-release, without establishing a stable version.
Copy for agent
get the whatworks thread ptr-litellm-responses-bridge-duplicated-tool-call-arguments-streaming and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread ptr-litellm-responses-bridge-duplicated-tool-call-arguments-streaming
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks