From 4299cce7387e8ea2c5222ff1357f2a6c3459e4a7 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期一, 22 七月 2024 17:13:38 +0800
Subject: [PATCH] 整理 summaryCom.vue,修改使用https

---
 src/components/chat/model/types.ts |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/components/chat/model/types.ts b/src/components/chat/model/types.ts
index 67f1e76..83ea50f 100644
--- a/src/components/chat/model/types.ts
+++ b/src/components/chat/model/types.ts
@@ -11,6 +11,7 @@
 	Text = 'text',
 	Summary = 'summary',
 	Url = 'url',
+	Map = 'map',
 }
 
 export const answerTypeMapCom = {
@@ -23,7 +24,6 @@
 export const enum RoleEnum {
 	user = 'user',
 	assistant = 'assistant',
-	system = 'system',
 }
 export const AnswerState = {
 	Null: null,
@@ -32,11 +32,20 @@
 };
 
 export type AnswerStateType = typeof AnswerState;
+export type ContextHistory = {
+	/** @description 鏁板瓧瀛楃涓� */
+	ratio: string;
+	history_id: string;
+	question: string;
+};
 
 export type ChatContent = {
 	type: AnswerType;
 	values: any;
-	error?:string;
+	askMoreList?: ContextHistory[];
+	errCode?: string;
+	errMsg?: string;
+	origin?: any;
 };
 
 export interface ChatMessage {
@@ -49,5 +58,4 @@
 export const roleImageMap = {
 	[RoleEnum.user]: userPic,
 	[RoleEnum.assistant]: assistantPic,
-	[RoleEnum.system]: userPic,
 };

--
Gitblit v1.9.3