tui: improve text formatting in summary prompt to ensure proper XML wrapping

This commit is contained in:
Dax Raad 2025-10-31 02:31:37 -04:00
parent 0e2e8dcd5f
commit caa6a3c20d

View file

@ -81,10 +81,15 @@ export namespace SessionSummary {
),
{
role: "user" as const,
content: textPart?.text ?? "",
content: `
The following is the text to summarize:
<text>
${textPart?.text ?? ""}
</text>
`,
},
],
headers:small.info.headers,
headers: small.info.headers,
model: small.language,
})
log.info("title", { title: result.text })
@ -117,7 +122,7 @@ export namespace SessionSummary {
`,
},
],
headers: small.info.headers
headers: small.info.headers,
})
summary = result.text
}