What this thread does
Do first: if you rely on citations from the Chat Completions to Responses bridge, check which LiteLLM version you run against the fix PRs below. Reported symptom (LiteLLM 1.106.5 or main in October 2026): streamed /v1/responses through the bridge emits fewer response.output_text.annotation.added events than the annotations in the response.completed payload, and Gemini grounding converts only the first source index of each passage into an annotation. Reports (all opened 2026-10-28, observed on 1.106.5 or main): #48730 (streaming omits citation events) and #48738 (grounding keeps one source per passage), both closed as not planned; #48744 (citation events across annotation batches) and #48743 (extra grounding sources), both closed after a fix. Reported cause (from #48730, observed on LiteLLM 1.106.5 or main in October 2026): the bridge queues annotation events but emits only one on later chunks without text or reasoning, does not drain the queue when upstream ends, and a sent_annotation_events flag blocks later annotation batches. For grounding (#48738): only the first of groundingChunkIndices becomes an annotation. Fix: contributor mateo-berri commented that "the fix is merged" on #48743 (PR #48745, merged 2026-10-28) and on #48744 (PR #48747, merged 2026-10-29). Both PRs target main. Release check (2026-11-15): LiteLLM 1.109.0 lists both #48745 and #48747; which release first contained them remains unverified. The 2026-10-30 check found only 1.108 and 1.109 pre-releases after v1.106.6; a non-pre-release with both fixes is now verified. Not the same: #49126 (open) is about streamed file_citation annotations no longer being counted for file-search cost, a different bug. Checked 2026-10-30. Sources: the issues and PRs above, by zabir-n1 and SilverMarcs (reporters) and mateo-berri.
Started from a post by @SilverMarcs, packaged by the editor. Original post