minimal changes on last two chats

hypav2.ts update. last commit.
This commit is contained in:
LightningHyperBlaze45654
2024-06-17 23:45:03 -07:00
parent e530783eb6
commit b17cf1e532

View File

@@ -276,14 +276,17 @@ export async function hypaMemoryV2(
}
}
// Add last two chats if they exist
// Yeah, It's fine to remove this, but for the sake of stability, currently commented it out. Will add stabilizer for this
/*
// Add last two chats if they exist and are not duplicates
if (lastTwoChats.length === 2) {
chats.push(lastTwoChats[0]);
chats.push(lastTwoChats[1]);
const [lastChat1, lastChat2] = lastTwoChats;
if (!chats.some(chat => chat.memo === lastChat1.memo)) {
chats.push(lastChat1);
}
if (!chats.some(chat => chat.memo === lastChat2.memo)) {
chats.push(lastChat2);
}
}
*/
console.log("model being used: ", db.hypaModel, db.supaModelType, "\nCurrent session tokens: ", currentTokens, "\nAll chats, including memory system prompt: ", chats, "\nMemory data, with all the chunks: ", data);
return {
currentTokens: currentTokens,