Skip to content

Commit

Permalink
fix: set maxModelTokens to 4000 to be conservative and avoid limits
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Mar 7, 2023
1 parent acfaa50 commit 34727e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chatgpt-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class ChatGPTAPI {
messageStore,
completionParams,
systemMessage,
maxModelTokens = 4096,
maxModelTokens = 4000,
maxResponseTokens = 1000,
getMessageById,
upsertMessage,
Expand Down

0 comments on commit 34727e0

Please sign in to comment.