mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
CI + comment
This commit is contained in:
parent
175f630b1c
commit
4117b5298b
|
@ -93,7 +93,14 @@ describe('useActions', () => {
|
|||
],
|
||||
nodes: [
|
||||
{ type: CHAT_TRIGGER_NODE_TYPE, isAutoAdd: true },
|
||||
{ type: AGENT_NODE_TYPE, openDetail: true },
|
||||
{
|
||||
type: AGENT_NODE_TYPE,
|
||||
parameters: {
|
||||
promptType: 'auto',
|
||||
text: '={{ $json.chatInput }}',
|
||||
},
|
||||
openDetail: true,
|
||||
},
|
||||
],
|
||||
});
|
||||
});
|
||||
|
@ -123,7 +130,14 @@ describe('useActions', () => {
|
|||
],
|
||||
nodes: [
|
||||
{ type: CHAT_TRIGGER_NODE_TYPE, isAutoAdd: true },
|
||||
{ type: AGENT_NODE_TYPE, openDetail: true },
|
||||
{
|
||||
type: AGENT_NODE_TYPE,
|
||||
parameters: {
|
||||
promptType: 'auto',
|
||||
text: '={{ $json.chatInput }}',
|
||||
},
|
||||
openDetail: true,
|
||||
},
|
||||
],
|
||||
});
|
||||
});
|
||||
|
|
|
@ -16,6 +16,7 @@ export function adjustNewNodes(
|
|||
|
||||
function adjustNewChild(parent: AddedNode, child: AddedNode) {
|
||||
if (AI_ROOT_NODE_TYPES.includes(child.type) && PROMPT_PROVIDER_NODE_NAMES.includes(parent.type)) {
|
||||
// Need to re-set text to support disabled parameter value for prompt text.
|
||||
Object.assign<AddedNode, Partial<INode>>(child, {
|
||||
parameters: { ...child.parameters, promptType: 'auto', text: '={{ $json.chatInput }}' },
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue