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