fix: model error
This commit is contained in:
parent
e1a3308355
commit
e3ce91cfa1
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue