From 1a6afa3263e8797c4d96d8ed93f433bc336660f0 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 8 Jul 2024 13:00:24 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E3=80=91AI=EF=BC=9A=E8=81=8A=E5=A4=A9=E5=AF=B9=E8=AF=9D=20inde?= =?UTF-8?q?x.vue=20=E4=BB=A3=E7=A0=81=E6=A2=B3=E7=90=86=2040%=EF=BC=88mess?= =?UTF-8?q?age=20=E9=83=A8=E5=88=86=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ai/chat/conversation/index.ts | 1 + .../index/components/message/MessageList.vue | 135 +++++++----------- .../components/message/MessageListEmpty.vue | 26 ++-- .../message/MessageNewConversation.vue | 5 +- 4 files changed, 65 insertions(+), 102 deletions(-) diff --git a/src/api/ai/chat/conversation/index.ts b/src/api/ai/chat/conversation/index.ts index acc21fc6..6ce4482f 100644 --- a/src/api/ai/chat/conversation/index.ts +++ b/src/api/ai/chat/conversation/index.ts @@ -12,6 +12,7 @@ export interface ChatConversationVO { temperature: number // 温度参数 maxTokens: number // 单条回复的最大 Token 数量 maxContexts: number // 上下文的最大 Message 数量 + createTime?: Date // 创建时间 // 额外字段 systemMessage?: string // 角色设定 modelName?: string // 模型名字 diff --git a/src/views/ai/chat/index/components/message/MessageList.vue b/src/views/ai/chat/index/components/message/MessageList.vue index fa6e8ab1..b48fc295 100644 --- a/src/views/ai/chat/index/components/message/MessageList.vue +++ b/src/views/ai/chat/index/components/message/MessageList.vue @@ -1,7 +1,7 @@