[fix] hypaMemory fix

This commit is contained in:
kwaroran
2023-06-29 01:15:17 +09:00
parent 574d15e68d
commit 21ae693f08

View File

@@ -202,6 +202,7 @@ export async function supaMemory(
if(arg.asHyper){
const hypa = new HypaProcesser()
hypa.oaikey = db.supaMemoryKey
await hypa.addText(hypaChunks)
const filteredChat = chats.filter((r) => r.role !== 'system' && r.role !== 'function')
const s = await hypa.similaritySearch(stringlizeChat(filteredChat.slice(0, 4)))