From b2545b84be4d532b1cacd278db417221f92bb7fc Mon Sep 17 00:00:00 2001
From: junleea <354425203@qq.com>
Date: Tue, 1 Apr 2025 14:40:20 +0800
Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=94=A8=E4=BA=A4=E4=BA=92=E6=94=AF?=
=?UTF-8?q?=E6=8C=81=E5=9B=BE=E7=89=87=E7=90=86=E8=A7=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/types/im.ts | 24 +++++
src/views/system/gen-chat.vue | 173 ++++++++++++++++++++++++++++++++--
2 files changed, 191 insertions(+), 6 deletions(-)
diff --git a/src/types/im.ts b/src/types/im.ts
index fa8222b..9009d8a 100644
--- a/src/types/im.ts
+++ b/src/types/im.ts
@@ -30,3 +30,27 @@ export interface OllamaRequest {
context: number[];
}
+// "ID": 488,
+// "CreatedAt": "2025-04-01T13:52:56.887+08:00",
+// "UpdatedAt": "2025-04-01T13:52:56.887+08:00",
+// "DeletedAt": null,
+// "Type": 3,
+// "SessionID": 178,
+// "FromID": 1,
+// "ToID": 11,
+// "Msg": "图片主要讲了什么",
+// "FunctionID": 2,
+// "Status": 3
+export interface GenMessage {
+ ID : number;
+ CreatedAt : string;
+ UpdatedAt : string;
+ DeletedAt : string;
+ Type : number;
+ SessionID : number;
+ FromID : number;
+ ToID : number;
+ Msg : string;
+ FunctionID : number;
+ Status : number;
+}
\ No newline at end of file
diff --git a/src/views/system/gen-chat.vue b/src/views/system/gen-chat.vue
index d36c45f..dc10c4f 100644
--- a/src/views/system/gen-chat.vue
+++ b/src/views/system/gen-chat.vue
@@ -81,14 +81,15 @@