mirror of
https://github.com/Chanzhaoyu/chatgpt-web.git
synced 2025-10-18 09:25:03 +00:00
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:
@@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user