From 46502e762baac62edb2b7ffd15a5dd7053828583 Mon Sep 17 00:00:00 2001
From: LightningHyperBlaze45654
<73149145+LightningHyperBlaze45654@users.noreply.github.com>
Date: Sun, 1 Dec 2024 22:15:19 -0800
Subject: [PATCH] add: gut updates
are you ready?
I hate school
---
src/lib/Others/AlertComp.svelte | 2 +-
src/ts/process/memory/hypav2.ts | 10 ++++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/lib/Others/AlertComp.svelte b/src/lib/Others/AlertComp.svelte
index 0bc63e02..7ef80344 100644
--- a/src/lib/Others/AlertComp.svelte
+++ b/src/lib/Others/AlertComp.svelte
@@ -287,7 +287,7 @@
{#if generationInfoMenuIndex === 0}
- {#each DBState.db.characters[$selectedCharID].chats[DBState.db.characters[$selectedCharID].chatPage].hypaV2Data.chunks as chunk}
+ {#each DBState.db.characters[$selectedCharID].chats[DBState.db.characters[$selectedCharID].chatPage].hypaV2Data.chunks as chunk, i}
{/each}
diff --git a/src/ts/process/memory/hypav2.ts b/src/ts/process/memory/hypav2.ts
index b6cde9ba..d2e46126 100644
--- a/src/ts/process/memory/hypav2.ts
+++ b/src/ts/process/memory/hypav2.ts
@@ -183,6 +183,16 @@ function cleanInvalidChunks(
return true;
});
}
+}
+export async function regenerateSummary(
+ chats: OpenAIChat[],
+ data: HypaV2Data,
+ mainChunkIndex: number
+) : Promise {
+// Should re-summarize a certain main chunk, based on index. It will then replace the original one. How much chat needs to be summarized is already defined in the mainChunk's chatRange field.
+ // After the update on mainChunks, it should also update chunks that have the same ChatRange, as they should be updated with the newly generated summary. Follow the same principles of splitting them.
+
+
}
export async function hypaMemoryV2(
chats: OpenAIChat[],