diff --git a/.gitignore b/.gitignore index 552f00b4..edd8c086 100644 --- a/.gitignore +++ b/.gitignore @@ -75,3 +75,5 @@ gitbook/README.md # Refactor backup reference (do not bundle/lint) open-sse.old/ +.graphifyignore +graphify-out/* diff --git a/open-sse/translator/response/openai-to-claude.js b/open-sse/translator/response/openai-to-claude.js index e771c154..3998cc84 100644 --- a/open-sse/translator/response/openai-to-claude.js +++ b/open-sse/translator/response/openai-to-claude.js @@ -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);