fix(Anthropic Chat Model Node): Fix LmChatAnthropic node to work when both thinking is enabled and tools used (#16010)

This commit is contained in:
Yiorgis Gozadinos
2025-06-05 13:33:51 +02:00
committed by GitHub
parent 0bea193814
commit e662998c67
7 changed files with 177 additions and 141 deletions

View File

@@ -75,8 +75,8 @@ export class ToolExecutor implements INodeType {
}
} else {
// Handle single tool
if (!toolName || toolName === (tool as Tool).name) {
const result = await executeTool(tool as Tool, parsedQuery);
if (!toolName || toolName === tool.name) {
const result = await executeTool(tool, parsedQuery);
resultData.push(result);
}
}