From 21ae693f087e003b065fc866dfc2540ba0a89e06 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Thu, 29 Jun 2023 01:15:17 +0900 Subject: [PATCH] [fix] hypaMemory fix --- src/ts/process/memory/supaMemory.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ts/process/memory/supaMemory.ts b/src/ts/process/memory/supaMemory.ts index 5c6bbc9e..d86e0040 100644 --- a/src/ts/process/memory/supaMemory.ts +++ b/src/ts/process/memory/supaMemory.ts @@ -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)))