Skip to content
This repository has been archived by the owner on Feb 10, 2025. It is now read-only.

Commit

Permalink
feat: improve GPT-3.5 Turbo 16k support
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello committed Mar 6, 2024
1 parent c520580 commit 9434381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/src/chatgpt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ let api: ChatGPTAPI | ChatGPTUnofficialProxyAPI
}
}
else if (model.toLowerCase().includes('gpt-3.5')) {
if (model.toLowerCase().includes('16k')) {
if (/16k|1106|0125/.test(model.toLowerCase())) {
options.maxModelTokens = 16384
options.maxResponseTokens = 4096
}
Expand Down

0 comments on commit 9434381

Please sign in to comment.