mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
feat(editor): Rename 'Text' fields on AI nodes to 'Prompt' (#13416)
This commit is contained in:
@@ -338,7 +338,7 @@ export class ChainLlm implements INodeType {
|
|||||||
displayOptions: { show: { promptType: ['auto'], '@version': [{ _cnd: { gte: 1.5 } }] } },
|
displayOptions: { show: { promptType: ['auto'], '@version': [{ _cnd: { gte: 1.5 } }] } },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Text',
|
displayName: 'Prompt (User Message)',
|
||||||
name: 'text',
|
name: 'text',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
required: true,
|
required: true,
|
||||||
|
|||||||
@@ -123,11 +123,12 @@ export class ChainRetrievalQa implements INodeType {
|
|||||||
displayOptions: { show: { promptType: ['auto'], '@version': [{ _cnd: { gte: 1.4 } }] } },
|
displayOptions: { show: { promptType: ['auto'], '@version': [{ _cnd: { gte: 1.4 } }] } },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Text',
|
displayName: 'Prompt (User Message)',
|
||||||
name: 'text',
|
name: 'text',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
required: true,
|
required: true,
|
||||||
default: '',
|
default: '',
|
||||||
|
placeholder: 'e.g. Hello, how can you help me?',
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
rows: 2,
|
rows: 2,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ const properties: INodeProperties[] = [
|
|||||||
name: 'prompt',
|
name: 'prompt',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Text',
|
displayName: 'Prompt (User Message)',
|
||||||
name: 'text',
|
name: 'text',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
|||||||
@@ -34,11 +34,12 @@ const properties: INodeProperties[] = [
|
|||||||
name: 'values',
|
name: 'values',
|
||||||
values: [
|
values: [
|
||||||
{
|
{
|
||||||
displayName: 'Text',
|
displayName: 'Prompt',
|
||||||
name: 'content',
|
name: 'content',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: 'The content of the message to be send',
|
description: 'The content of the message to be send',
|
||||||
default: '',
|
default: '',
|
||||||
|
placeholder: 'e.g. Hello, how can you help me?',
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
rows: 2,
|
rows: 2,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ export const promptTypeOptions: INodeProperties = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const textInput: INodeProperties = {
|
export const textInput: INodeProperties = {
|
||||||
displayName: 'Text',
|
displayName: 'Prompt (User Message)',
|
||||||
name: 'text',
|
name: 'text',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
required: true,
|
required: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user