From 9b757301e425ac5cee7e13cebbf6e896e21d16b6 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Sat, 9 Sep 2023 07:15:28 +0900 Subject: [PATCH] [fix] ll promblem --- src/ts/process/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ts/process/index.ts b/src/ts/process/index.ts index 205f92b1..2df95aeb 100644 --- a/src/ts/process/index.ts +++ b/src/ts/process/index.ts @@ -264,6 +264,9 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n //await tokenize currernt let currentTokens = db.maxResponse + //for unexpected error + currentTokens += 50 + if(promptTemplate){ const template = promptTemplate