diff --git a/src/lib/Setting/Pages/OtherBotSettings.svelte b/src/lib/Setting/Pages/OtherBotSettings.svelte index d6877814..22c89b86 100644 --- a/src/lib/Setting/Pages/OtherBotSettings.svelte +++ b/src/lib/Setting/Pages/OtherBotSettings.svelte @@ -291,7 +291,7 @@ $DataBase.hypav2 = false $DataBase.hanuraiEnable = true } else if (value === 'hypaV2') { - $DataBase.supaMemoryType = 'hypaV2' + $DataBase.supaMemoryType = 'distilbart' $DataBase.hypav2= true $DataBase.hanuraiEnable = false } else { diff --git a/src/ts/process/index.ts b/src/ts/process/index.ts index e0600f4f..057daeb7 100644 --- a/src/ts/process/index.ts +++ b/src/ts/process/index.ts @@ -714,7 +714,7 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n currentTokens += await tokenizer.tokenizeChat(chat) } - if(nowChatroom.supaMemory && (db.supaMemoryType !== 'none' || db.hanuraiEnable)){ + if(nowChatroom.supaMemory && (db.supaMemoryType !== 'none' || db.hanuraiEnable || db.hypav2)){ chatProcessStage.set(2) if(db.hanuraiEnable){ const hn = await hanuraiMemory(chats, { @@ -730,7 +730,7 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n chats = hn.chats currentTokens = hn.tokens } - else if(db.supaMemoryType !== 'none' && db.hypav2){ //HypaV2 support needs to be changed like this. + else if(db.hypav2){ //HypaV2 support needs to be changed like this. const sp = await hypaMemoryV2(chats, currentTokens, maxContextTokens, currentChat, nowChatroom, tokenizer) if(sp.error){ alertError(sp.error)