add: gut updates
are you ready? I hate school
This commit is contained in:
@@ -287,7 +287,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{#if generationInfoMenuIndex === 0}
|
{#if generationInfoMenuIndex === 0}
|
||||||
<div class="flex flex-col gap-2 w-full">
|
<div class="flex flex-col gap-2 w-full">
|
||||||
{#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}
|
||||||
<TextAreaInput bind:value={chunk.text} />
|
<TextAreaInput bind:value={chunk.text} />
|
||||||
{/each}
|
{/each}
|
||||||
|
|
||||||
|
|||||||
@@ -183,6 +183,16 @@ function cleanInvalidChunks(
|
|||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
export async function regenerateSummary(
|
||||||
|
chats: OpenAIChat[],
|
||||||
|
data: HypaV2Data,
|
||||||
|
mainChunkIndex: number
|
||||||
|
) : Promise<void> {
|
||||||
|
// 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(
|
export async function hypaMemoryV2(
|
||||||
chats: OpenAIChat[],
|
chats: OpenAIChat[],
|
||||||
|
|||||||
Reference in New Issue
Block a user