From e4d956d0d681fde97251347701a322fca2817914 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Wed, 31 May 2023 05:50:08 +0900 Subject: [PATCH] [fix] token fix --- 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 0c48d7e4..a694092e 100644 --- a/src/ts/process/index.ts +++ b/src/ts/process/index.ts @@ -207,7 +207,7 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n return (unformated[key] as OpenAIChat[]).map((d) => { return d.content }).join('\n\n') - }).join('\n\n')) + db.maxResponse) + 100 + }).join('\n\n')) + db.maxResponse) + 130 const examples = exampleMessage(currentChar)