9router/open-sse/translator
chisewaguri 10a923da11 fix(responses): don't close message on empty tool_calls array
Some providers (e.g. codebuddy/cbcn) attach an empty tool_calls array to every streaming chunk. An empty array is truthy in JS, so the guard 'if (delta.tool_calls)' closed the message on the first content token and emitted response.output_text.done early, dropping the remaining deltas. Guard on a non-empty array; finish_reason still closes the message and real tool calls still close it before emitting function_call items.

fixes #3234
2026-08-13 11:40:45 +07:00
..
concerns feat(providers): add TokenRouter accurate pricing + thinking config 2026-08-05 16:31:03 +07:00
formats fix(translator): don't drop image-only user messages in prepareClaudeRequest 2026-08-05 13:20:27 +07:00
request fix(kiro): report real output tokens and stop discarding usable turns 2026-08-13 11:33:41 +07:00
response fix(responses): don't close message on empty tool_calls array 2026-08-13 11:40:45 +07:00
schema fix(translator): preserve Responses Lite tools across Chat providers 2026-08-05 13:27:25 +07:00
formats.js feat: add CommandCode provider support 2026-05-07 23:01:33 +07:00
index.js fix(translator): preserve Responses Lite tools across Chat providers 2026-08-05 13:27:25 +07:00