feat: improve GPT-3.5 Turbo 16k support (#2049)

Reference:
- https://platform.openai.com/docs/models/gpt-3-5-turbo
This commit is contained in:
Peter Dave Hello 2024-03-11 13:02:19 +08:00 committed by GitHub
parent 6432efeb35
commit 8dd447ce69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ let api: ChatGPTAPI | ChatGPTUnofficialProxyAPI
} }
} }
else if (model.toLowerCase().includes('gpt-3.5')) { else if (model.toLowerCase().includes('gpt-3.5')) {
if (model.toLowerCase().includes('16k')) { if (/16k|1106|0125/.test(model.toLowerCase())) {
options.maxModelTokens = 16384 options.maxModelTokens = 16384
options.maxResponseTokens = 4096 options.maxResponseTokens = 4096
} }