feat: Update Chat SDK to support streaming responses (#17006)

Co-authored-by: Eugene Molodkin <eugene@n8n.io>
This commit is contained in:
Benjamin Schroth
2025-07-10 12:25:29 +02:00
committed by GitHub
parent b9e7b719c0
commit 3edadb5a75
26 changed files with 1670 additions and 37 deletions

View File

@@ -1720,7 +1720,16 @@ export class WorkflowExecute {
// Send error to the response if necessary
await hooks?.runHook('sendChunk', [
{ type: 'error', content: executionError.description },
{
type: 'error',
content: executionError.description,
metadata: {
nodeId: executionNode.id,
nodeName: executionNode.name,
runIndex,
itemIndex: 0,
},
},
]);
if (