Improve chat title generation and context compacting
CI / check (22) (push) Failing after 5m22s
CI / check (24) (push) Failing after 12m34s

This commit is contained in:
2026-10-16 12:22:14 +02:00
parent b8b06a8a33
commit 99aff83a23
6 changed files with 11 additions and 8 deletions
+3
View File
@@ -752,9 +752,11 @@ test("chat memories are durable facts included in model payload", async () => {
test("chat context summary rolls up older messages into future payloads", async () => {
let replyCount = 0;
let latestPayload = [];
let summaryModel = null;
const modelService = {
async generateReply(model, messagesPayload) {
if (messagesPayload.some((message) => message.content.includes("Merge the previous summary"))) {
summaryModel = model;
return "Summary: user greeted the assistant and asked for continuity.";
}
latestPayload = messagesPayload;
@@ -810,6 +812,7 @@ test("chat context summary rolls up older messages into future payloads", async
assert.ok(latestPayload.some((message) => message.role === "system" && message.content.includes("CONVERSATION SUMMARY")));
assert.ok(latestPayload.some((message) => message.content.includes("user greeted the assistant")));
assert.equal(summaryModel, "nomic-embed-text:latest");
await server.close();
});