mirror of
https://github.com/Chanzhaoyu/chatgpt-web.git
synced 2025-02-17 18:36:15 +00:00
fix: model error
This commit is contained in:
parent
e1a3308355
commit
e3ce91cfa1
@ -54,7 +54,7 @@ let api: ChatGPTAPI | ChatGPTUnofficialProxyAPI
|
|||||||
options.maxResponseTokens = 8192
|
options.maxResponseTokens = 8192
|
||||||
}
|
}
|
||||||
// if use GPT-4 Turbo or GPT-4o
|
// 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.maxModelTokens = 128000
|
||||||
options.maxResponseTokens = 4096
|
options.maxResponseTokens = 4096
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user