Fix OpenCode Go GLM

This commit is contained in:
decolua
2026-06-29 15:00:03 +07:00
parent cce47dd809
commit 526235872a
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -75,3 +75,5 @@ gitbook/README.md
# Refactor backup reference (do not bundle/lint) # Refactor backup reference (do not bundle/lint)
open-sse.old/ open-sse.old/
.graphifyignore
graphify-out/*
@@ -184,7 +184,8 @@ export function openaiToClaudeResponse(chunk, state) {
for (const tc of delta.tool_calls) { for (const tc of delta.tool_calls) {
const idx = tc.index ?? 0; 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); stopThinkingBlock(state, results);
stopTextBlock(state, results); stopTextBlock(state, results);