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:
parent
6432efeb35
commit
8dd447ce69
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue