[fix] hypamemory

This commit is contained in:
kwaroran
2023-08-03 09:20:46 +09:00
parent 0e0601642a
commit a6204c0e6a

View File

@@ -205,6 +205,7 @@ export async function supaMemory(
const hypa = new HypaProcesser() const hypa = new HypaProcesser()
hypa.oaikey = db.supaMemoryKey hypa.oaikey = db.supaMemoryKey
hypa.vectors = [] hypa.vectors = []
hypaChunks = hypaChunks.filter((value) => value.length > 1)
await hypa.addText(hypaChunks.filter((value, index, self) => { await hypa.addText(hypaChunks.filter((value, index, self) => {
return self.indexOf(value) === index; return self.indexOf(value) === index;
})) }))