[feat] supamemory imp

This commit is contained in:
kwaroran
2023-08-06 12:39:53 +09:00
parent bc018a97cf
commit 31763bb481

View File

@@ -214,7 +214,8 @@ export async function supaMemory(
hypaResult = "past events: " + s.slice(0,3).join("\n")
currentTokens += await tokenizer.tokenizeChat({
role: "assistant",
content: hypaResult
content: hypaResult,
memo: "hypaMemory"
})
currentTokens += 10
}
@@ -311,7 +312,7 @@ export async function supaMemory(
chats.unshift({
role: "system",
content: supaMemory,
name: "supaMemory"
memo: "supaMemory"
})