[feat] supamemory imp
This commit is contained in:
@@ -214,7 +214,8 @@ export async function supaMemory(
|
|||||||
hypaResult = "past events: " + s.slice(0,3).join("\n")
|
hypaResult = "past events: " + s.slice(0,3).join("\n")
|
||||||
currentTokens += await tokenizer.tokenizeChat({
|
currentTokens += await tokenizer.tokenizeChat({
|
||||||
role: "assistant",
|
role: "assistant",
|
||||||
content: hypaResult
|
content: hypaResult,
|
||||||
|
memo: "hypaMemory"
|
||||||
})
|
})
|
||||||
currentTokens += 10
|
currentTokens += 10
|
||||||
}
|
}
|
||||||
@@ -311,7 +312,7 @@ export async function supaMemory(
|
|||||||
chats.unshift({
|
chats.unshift({
|
||||||
role: "system",
|
role: "system",
|
||||||
content: supaMemory,
|
content: supaMemory,
|
||||||
name: "supaMemory"
|
memo: "supaMemory"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user