add comments to remove tool calls with no id

This commit is contained in:
Henry 2025-09-30 12:26:32 +01:00
parent b28e18e9a2
commit 819d11d2a8
1 changed files with 2 additions and 0 deletions

View File

@ -1739,6 +1739,7 @@ class Agent_Agentflow implements INode {
sseStreamer.streamCalledToolsEvent(chatId, JSON.stringify(response.tool_calls))
}
// Remove tool calls with no id
const toBeRemovedToolCalls = []
for (let i = 0; i < response.tool_calls.length; i++) {
const toolCall = response.tool_calls[i]
@ -2047,6 +2048,7 @@ class Agent_Agentflow implements INode {
sseStreamer.streamCalledToolsEvent(chatId, JSON.stringify(response.tool_calls))
}
// Remove tool calls with no id
const toBeRemovedToolCalls = []
for (let i = 0; i < response.tool_calls.length; i++) {
const toolCall = response.tool_calls[i]