Commit graph

1 commit

Author SHA1 Message Date
Chesars
0ebbec4d0e fix(chatgpt): normalize streaming tool_call indices and deduplicate closing chunks
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
2026-02-18 18:02:36 -03:00