feat: Implement streaming response node on ChatTrigger and Webhook (no-changelog) (#16761)

This commit is contained in:
Benjamin Schroth
2025-07-01 11:03:23 +02:00
committed by GitHub
parent 8e62c80d48
commit 47bf4b77d3
5 changed files with 510 additions and 167 deletions

View File

@@ -125,29 +125,57 @@ export const responseCodeProperty: INodeProperties = {
description: 'The HTTP Response code to return',
};
const responseModeOptions = [
{
name: 'Immediately',
value: 'onReceived',
description: 'As soon as this node executes',
},
{
name: 'When Last Node Finishes',
value: 'lastNode',
description: 'Returns data of the last-executed node',
},
{
name: "Using 'Respond to Webhook' Node",
value: 'responseNode',
description: 'Response defined in that node',
},
];
export const responseModeProperty: INodeProperties = {
displayName: 'Respond',
name: 'responseMode',
type: 'options',
options: responseModeOptions,
default: 'onReceived',
description: 'When and how to respond to the webhook',
displayOptions: {
show: {
'@version': [1, 1.1, 2],
},
},
};
export const responseModePropertyStreaming: INodeProperties = {
displayName: 'Respond',
name: 'responseMode',
type: 'options',
options: [
...responseModeOptions,
{
name: 'Immediately',
value: 'onReceived',
description: 'As soon as this node executes',
},
{
name: 'When Last Node Finishes',
value: 'lastNode',
description: 'Returns data of the last-executed node',
},
{
name: "Using 'Respond to Webhook' Node",
value: 'responseNode',
description: 'Response defined in that node',
name: 'Streaming Response',
value: 'streaming',
description: 'Returns data in real time from streaming enabled nodes',
},
],
default: 'onReceived',
description: 'When and how to respond to the webhook',
displayOptions: {
hide: {
'@version': [1, 1.1, 2],
},
},
};
export const responseDataProperty: INodeProperties = {