Fix OpenCode Go GLM
This commit is contained in:
1 parent
cce47dd809
commit
526235872a
2 files changed
+4
-1
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user