fix(chat): normalize message date headers

This commit is contained in:
2026-06-22 18:23:50 +08:00
parent 0b8bae5e5f
commit 27021f9328
3 changed files with 14 additions and 8 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import { z } from "zod";
export const UiMessageSchema = z.object({
content: z.string(),
isFromAI: z.boolean(),
/** 显示用时间戳(HH:mm */
/** 日期分隔条使用的本地日期(YYYY-MM-DD */
date: z.string(),
/** 图片 URLbase64 data URL 或 http URL */
imageUrl: z.string().optional(),