fix(node): 移除被过滤工具调用的回退重发并对齐 Go 行为
This commit is contained in:
1 parent
d4017b87c1
commit
1e678ecc1a
2 files changed
+9
-9
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user