Skip to content

Commit

Permalink
fix: model error
Browse files Browse the repository at this point in the history
  • Loading branch information
Chanzhaoyu committed May 17, 2024
1 parent e1a3308 commit e3ce91c
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 @@ -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
}
Expand Down

0 comments on commit e3ce91c

Please sign in to comment.