From f29f0340cf223ad48e7ba3b5db8cb71f091082f7 Mon Sep 17 00:00:00 2001
From: josephrocca <1167575+josephrocca@users.noreply.github.com>
Date: Tue, 28 Nov 2023 03:05:17 +0800
Subject: [PATCH] Fix memory/summary bug
---
index.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/index.html b/index.html
index 0092135..0b3346a 100644
--- a/index.html
+++ b/index.html
@@ -3783,8 +3783,8 @@
Your Characters
// existingThreadMemories.sort((a,b) => a.index - b.index);
// let previousMemory = existingThreadMemories.at(-1);
// let previousMemoryIndex = previousMemory ? previousMemory.index : -1;
- // let i = 0;
- // let memoryObjsToAdd = [];
+ let i = 0;
+ let memoryObjsToAdd = [];
let previousMemoryIndex = highestMemoryIndexInCurrentMemories;
for(let memory of memories) {
let embedding = embeddings[i];