[fix] max response error

This commit is contained in:
kwaroran
2023-06-10 09:22:05 +09:00
parent 42c0134744
commit 077623b23d

View File

@@ -199,7 +199,7 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
}) })
//await tokenize currernt //await tokenize currernt
let currentTokens = 0 let currentTokens = db.maxResponse
for(const key in unformated){ for(const key in unformated){
const chats = unformated[key] as OpenAIChat[] const chats = unformated[key] as OpenAIChat[]