From 1304e71b7a4d85f0e987ed6d01835e9b229111d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=AB=E5=9C=B0=E5=83=A7?= <357099073@qq.com> Date: Thu, 10 Sep 2026 22:31:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96ai=E5=B9=BF=E5=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/apps/ai/components/chatWindow.vue | 297 +++++++++++++++--- go/controllers/backend_ai_chat.go | 66 +++- .../alter_backend_ai_chat_message_images.sql | 3 + go/models/backend_ai_chat_message.go | 2 + 4 files changed, 314 insertions(+), 54 deletions(-) create mode 100644 go/docs/sql/alter_backend_ai_chat_message_images.sql diff --git a/backend/src/views/apps/ai/components/chatWindow.vue b/backend/src/views/apps/ai/components/chatWindow.vue index c00f12b..dbf6cc9 100644 --- a/backend/src/views/apps/ai/components/chatWindow.vue +++ b/backend/src/views/apps/ai/components/chatWindow.vue @@ -17,7 +17,6 @@ @@ -31,7 +30,6 @@ @@ -124,6 +122,9 @@
+
+ 图片 +
@@ -157,9 +158,11 @@
+ 首字 {{ (msg.firstTokenMs / 1000).toFixed(1) }}s + · {{ formatDuration(msg.durationMs) }} · {{ msg.tokens }} tokens @@ -186,26 +189,47 @@
+
+ 首字 {{ (lastAssistant.firstTokenMs / 1000).toFixed(1) }}s + + +
- - - 发送 - +
+
+ 待发送图片 + +
+
+
+ +
+ + 发送 + +
+
AI生成内容仅供参考,请核实重要信息
@@ -217,7 +241,7 @@