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