mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
The ChatGPT backend API sends non-spec-compliant streaming tool call chunks where index is always 0 for parallel tool calls and id/name get repeated in duplicate closing chunks. Add ChatGPTToolCallNormalizer to fix indices and filter duplicates before they reach the consumer. Fixes #21482
0 lines
Python
0 lines
Python