Skip to content

Commit

Permalink
feat(openai): add models, adjust maxTokens limits
Browse files Browse the repository at this point in the history
  • Loading branch information
yzh990918 committed May 18, 2023
1 parent 7e446f1 commit e6f4768
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/providers/openai/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ const providerOpenAI = () => {
options: [
{ value: 'gpt-3.5-turbo', label: 'gpt-3.5-turbo' },
{ value: 'gpt-4', label: 'gpt-4' },
{ value: 'gpt-4-0314', label: 'gpt-4-0314' },
{ value: 'gpt-4-32k', label: 'gpt-4-32k' },
{ value: 'gpt-4-32k-0314', label: 'gpt-4-32k-0314' },
{ value: 'gpt-3.5-turbo-0301', label: 'gpt-3.5-turbo-0301' },
],
default: 'gpt-3.5-turbo',
},
Expand All @@ -39,7 +43,7 @@ const providerOpenAI = () => {
description: 'The maximum number of tokens to generate in the completion.',
type: 'slider',
min: 0,
max: 4096,
max: 32768,
default: 2048,
step: 1,
},
Expand Down

0 comments on commit e6f4768

Please sign in to comment.