mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-27 16:07:02 +00:00
The responses->chat streaming converter re-emits the tool name as an empty string on every function_call_arguments.delta because ChatFunctionCall.Name has no omitempty. OpenAI-compatible clients accumulate the name from the first tool-call delta, so the trailing "name":"" overwrites it and the call fails dispatch (unknown tool ""). Empty names also break the next round-trip upstream (missing field 'name'). Fixes #5631