mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
feat(OpenAI Node): Update max token limit to support newer model limits (#6644)
This commit is contained in:
parent
ad581566ae
commit
26046f6fe8
|
@ -252,7 +252,7 @@ const sharedOperations: INodeProperties[] = [
|
||||||
name: 'maxTokens',
|
name: 'maxTokens',
|
||||||
default: 16,
|
default: 16,
|
||||||
description:
|
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',
|
type: 'number',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
|
@ -260,7 +260,7 @@ const sharedOperations: INodeProperties[] = [
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
maxValue: 4096,
|
maxValue: 32768,
|
||||||
},
|
},
|
||||||
routing: {
|
routing: {
|
||||||
send: {
|
send: {
|
||||||
|
|
|
@ -403,7 +403,7 @@ const sharedOperations: INodeProperties[] = [
|
||||||
name: 'maxTokens',
|
name: 'maxTokens',
|
||||||
default: 16,
|
default: 16,
|
||||||
description:
|
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',
|
type: 'number',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
|
@ -411,7 +411,7 @@ const sharedOperations: INodeProperties[] = [
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
maxValue: 4096,
|
maxValue: 32768,
|
||||||
},
|
},
|
||||||
routing: {
|
routing: {
|
||||||
send: {
|
send: {
|
||||||
|
|
Loading…
Reference in a new issue