This commit is contained in:
2026-07-06 00:01:34 +07:00
parent 2729408ef3
commit e7470e955e
108 changed files with 4131 additions and 529 deletions

View File

@@ -184,7 +184,8 @@ export function openaiToClaudeResponse(chunk, state) {
for (const tc of delta.tool_calls) {
const idx = tc.index ?? 0;
if (tc.id) {
// GLM/fireworks repeats id+null-name on every arg chunk; open block once per idx
if (tc.id && !state.toolCalls.has(idx)) {
stopThinkingBlock(state, results);
stopTextBlock(state, results);