From 0ea84c36a627e095948b5cd3ef8e11f19b84d605 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 29 Dec 2025 09:14:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=8A=A0=E5=9B=BE?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E6=B6=88=E6=81=AF=E7=9A=84=E6=8C=81=E4=B9=85?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/chat.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/chat.tsx b/components/chat.tsx index def781d..845f42e 100644 --- a/components/chat.tsx +++ b/components/chat.tsx @@ -601,12 +601,14 @@ export function Chat({ // 构造图片Markdown(使用与Gemini生成相同的格式) const imageMarkdown = `![thumb|||${result.original_url}|||2K](${result.thumbnail_url || result.original_url})`; - // 创建最终消息 + // 创建最终消息(前端显示用) const finalMessage: ChatMessage = { id: messageId, role: "assistant", parts: [{ type: "text", text: imageMarkdown }], - createdAt: new Date().toISOString(), + metadata: { + createdAt: new Date().toISOString(), + }, } as ChatMessage; // 更新消息