diff --git a/packages/nodes-base/nodes/OpenAi/ChatDescription.ts b/packages/nodes-base/nodes/OpenAi/ChatDescription.ts index a4748cc42..c1db473ad 100644 --- a/packages/nodes-base/nodes/OpenAi/ChatDescription.ts +++ b/packages/nodes-base/nodes/OpenAi/ChatDescription.ts @@ -252,7 +252,7 @@ const sharedOperations: INodeProperties[] = [ name: 'maxTokens', default: 16, description: - 'The maximum number of tokens to generate in the completion. Most models have a context length of 2048 tokens (except for the newest models, which support 4096).', + 'The maximum number of tokens to generate in the completion. Most models have a context length of 2048 tokens (except for the newest models, which support 32,768).', type: 'number', displayOptions: { show: { @@ -260,7 +260,7 @@ const sharedOperations: INodeProperties[] = [ }, }, typeOptions: { - maxValue: 4096, + maxValue: 32768, }, routing: { send: { diff --git a/packages/nodes-base/nodes/OpenAi/TextDescription.ts b/packages/nodes-base/nodes/OpenAi/TextDescription.ts index 36a80b111..746f202b8 100644 --- a/packages/nodes-base/nodes/OpenAi/TextDescription.ts +++ b/packages/nodes-base/nodes/OpenAi/TextDescription.ts @@ -403,7 +403,7 @@ const sharedOperations: INodeProperties[] = [ name: 'maxTokens', default: 16, description: - 'The maximum number of tokens to generate in the completion. Most models have a context length of 2048 tokens (except for the newest models, which support 4096).', + 'The maximum number of tokens to generate in the completion. Most models have a context length of 2048 tokens (except for the newest models, which support 32,768).', type: 'number', displayOptions: { show: { @@ -411,7 +411,7 @@ const sharedOperations: INodeProperties[] = [ }, }, typeOptions: { - maxValue: 4096, + maxValue: 32768, }, routing: { send: {