Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
Signed-off-by: InternetBugs <77239633+InternetBugs@users.noreply.github.com>
  • Loading branch information
InternetBugs committed Apr 27, 2024
1 parent 5a33729 commit 01a5cc9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions service/src/chatgpt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ export async function initApi(key: KeyConfig, chatModel: string, maxContextCount
else if (model.toLowerCase().includes('claude')) {
options.maxModelTokens = 2000000
options.maxResponseTokens = 4096
}
else if (model.toLowerCase().includes('qwen-1.5')) {
options.maxModelTokens = 32000
options.maxResponseTokens = 8000
}
else {
options.maxModelTokens = 4096
Expand Down

0 comments on commit 01a5cc9

Please sign in to comment.