diff --git a/ui/src/api/types/chat-log.ts b/ui/src/api/types/chat-log.ts index 48aa9161900..67203b162ff 100644 --- a/ui/src/api/types/chat-log.ts +++ b/ui/src/api/types/chat-log.ts @@ -47,6 +47,7 @@ export interface ChatContent { /** 对话日志中的单条问答记录,仅列出前端使用的字段。 */ export interface ChatLogRecord { id: string + create_time?: string /** 提问内容项 */ question: ChatContent /** 回答内容项列表 */ diff --git a/ui/src/conversation-panel/components/log-message-list/index.ts b/ui/src/conversation-panel/components/log-message-list/index.ts index bc06068ad9c..f2d106f8a2c 100644 --- a/ui/src/conversation-panel/components/log-message-list/index.ts +++ b/ui/src/conversation-panel/components/log-message-list/index.ts @@ -13,6 +13,7 @@ export interface LogMessageListDeps { // 从后端 chat_record(reset_chat_record 结构)提取底部信息栏数据 const buildRecordMeta = (raw: ChatLogRecord): ChatRecordMeta => ({ + createTime: raw.create_time, messageTokens: raw.message_tokens || 0, answerTokens: raw.answer_tokens || 0, runTime: raw.run_time || 0, diff --git a/ui/src/conversation-panel/components/message-footer/index.vue b/ui/src/conversation-panel/components/message-footer/index.vue index 0867d27b254..b95d1b921e0 100644 --- a/ui/src/conversation-panel/components/message-footer/index.vue +++ b/ui/src/conversation-panel/components/message-footer/index.vue @@ -1,5 +1,8 @@