[fix] ables

This commit is contained in:
kwaroran
2023-08-03 19:57:25 +09:00
parent 3af31f8383
commit 07459e3f56
4 changed files with 10 additions and 5 deletions

View File

@@ -448,8 +448,11 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
}
unformated.lastChat.push(chats[chats.length - 1])
chats.splice(chats.length - 1, 1)
if(!db.promptTemplate){
unformated.lastChat.push(chats[chats.length - 1])
chats.splice(chats.length - 1, 1)
}
unformated.chats = chats