[feat] added supamemory stable

This commit is contained in:
kwaroran
2023-05-19 19:25:19 +09:00
parent d7789be5e1
commit d30fd7b214
6 changed files with 85 additions and 47 deletions

View File

@@ -229,7 +229,7 @@ export async function sendChat(chatProcessIndex = -1):Promise<boolean> {
currentTokens += (await tokenize(systemMsg) + 1)
}
if(nowChatroom.supaMemory){
if(nowChatroom.supaMemory && db.supaMemoryType !== 'none'){
const sp = await supaMemory(chats, currentTokens, maxContextTokens, currentChat, nowChatroom)
if(sp.error){
alertError(sp.error)