fix(node): 移除被过滤工具调用的回退重发并对齐 Go 行为

This commit is contained in:
CJACK.
2026-02-22 23:05:40 +08:00
parent d4017b87c1
commit 1e678ecc1a
2 changed files with 9 additions and 9 deletions

View File

@@ -263,14 +263,6 @@ function filterToolCalls(parsed, toolNames) {
}
out.push({ name: tc.name, input: tc.input || {} });
}
if (out.length === 0 && parsed.length > 0) {
for (const tc of parsed) {
if (!tc || !tc.name) {
continue;
}
out.push({ name: tc.name, input: tc.input || {} });
}
}
return out;
}