fix: model error

This commit is contained in:
ChenZhoYu 2024-05-17 23:56:45 +08:00
parent e1a3308355
commit e3ce91cfa1
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ let api: ChatGPTAPI | ChatGPTUnofficialProxyAPI
options.maxResponseTokens = 8192
}
// if use GPT-4 Turbo or GPT-4o
else if (/-preview|-turbo|-o/.test(model.toLowerCase())) {
else if (/-preview|-turbo|o/.test(model.toLowerCase())) {
options.maxModelTokens = 128000
options.maxResponseTokens = 4096
}