Fix asHyper flag in sendChat function

This commit is contained in:
kwaroran
2024-04-11 04:50:42 +09:00
parent 3accdf0805
commit a98c9f2022

View File

@@ -645,7 +645,7 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
if(nowChatroom.supaMemory && db.supaMemoryType !== 'none'){ if(nowChatroom.supaMemory && db.supaMemoryType !== 'none'){
chatProcessStage.set(2) chatProcessStage.set(2)
const sp = await supaMemory(chats, currentTokens, maxContextTokens, currentChat, nowChatroom, tokenizer, { const sp = await supaMemory(chats, currentTokens, maxContextTokens, currentChat, nowChatroom, tokenizer, {
asHyper: db.supaMemoryType !== 'subModel' && db.hypaMemory asHyper: db.hypaMemory
}) })
if(sp.error){ if(sp.error){
alertError(sp.error) alertError(sp.error)