fix: 修复抠图功能消息的持久保存格式
This commit is contained in:
parent
b39ce3dcc2
commit
0ea84c36a6
@ -601,12 +601,14 @@ export function Chat({
|
||||
// 构造图片Markdown(使用与Gemini生成相同的格式)
|
||||
const imageMarkdown = ``;
|
||||
|
||||
// 创建最终消息
|
||||
// 创建最终消息(前端显示用)
|
||||
const finalMessage: ChatMessage = {
|
||||
id: messageId,
|
||||
role: "assistant",
|
||||
parts: [{ type: "text", text: imageMarkdown }],
|
||||
createdAt: new Date().toISOString(),
|
||||
metadata: {
|
||||
createdAt: new Date().toISOString(),
|
||||
},
|
||||
} as ChatMessage;
|
||||
|
||||
// 更新消息
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user