From 077623b23d0c8f2983796dd51ce8e3110118676f Mon Sep 17 00:00:00 2001 From: kwaroran Date: Sat, 10 Jun 2023 09:22:05 +0900 Subject: [PATCH] [fix] max response error --- src/ts/process/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/process/index.ts b/src/ts/process/index.ts index f2447726..690825a8 100644 --- a/src/ts/process/index.ts +++ b/src/ts/process/index.ts @@ -199,7 +199,7 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n }) //await tokenize currernt - let currentTokens = 0 + let currentTokens = db.maxResponse for(const key in unformated){ const chats = unformated[key] as OpenAIChat[]