mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
tui: improve text formatting in summary prompt to ensure proper XML wrapping
This commit is contained in:
parent
0e2e8dcd5f
commit
caa6a3c20d
1 changed files with 8 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue