This commit is contained in:
98caa9deab129460e181aae781d377 2025-12-23 15:42:04 +08:00 committed by GitHub
commit 2c27439366
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -427,7 +427,7 @@ export namespace MessageV2 {
const userMessage: UIMessage = {
id: msg.info.id,
role: "user",
parts: [],
parts: result.at(-1)?.role === "user" ? [{ type: "text", text: "\n" }] : [],
}
result.push(userMessage)
for (const part of msg.parts) {