From 34727e0edc98650decb709fc169092a322e58b33 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Tue, 7 Mar 2023 01:46:37 -0600 Subject: [PATCH] fix: set maxModelTokens to 4000 to be conservative and avoid limits --- src/chatgpt-api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chatgpt-api.ts b/src/chatgpt-api.ts index 376869558..16ef2c734 100644 --- a/src/chatgpt-api.ts +++ b/src/chatgpt-api.ts @@ -54,7 +54,7 @@ export class ChatGPTAPI { messageStore, completionParams, systemMessage, - maxModelTokens = 4096, + maxModelTokens = 4000, maxResponseTokens = 1000, getMessageById, upsertMessage,