From 4eb6092c32df67d752101ab8ae23c9b2236db0dc Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期三, 24 七月 2024 18:34:36 +0800 Subject: [PATCH] 监测点列表 --- src/components/chat/model/types.ts | 22 +++++++++++++++------- 1 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/components/chat/model/types.ts b/src/components/chat/model/types.ts index aee39fe..83ea50f 100644 --- a/src/components/chat/model/types.ts +++ b/src/components/chat/model/types.ts @@ -10,6 +10,8 @@ RecordSet = 'recordset', Text = 'text', Summary = 'summary', + Url = 'url', + Map = 'map', } export const answerTypeMapCom = { @@ -22,32 +24,38 @@ export const enum RoleEnum { user = 'user', assistant = 'assistant', - system = 'system', } export const AnswerState = { Null: null, Like: '1', - Unlike:'0', + Unlike: '0', }; export type AnswerStateType = typeof AnswerState; +export type ContextHistory = { + /** @description 鏁板瓧瀛楃涓� */ + ratio: string; + history_id: string; + question: string; +}; export type ChatContent = { type: AnswerType; values: any; + askMoreList?: ContextHistory[]; + errCode?: string; + errMsg?: string; + origin?: any; }; export interface ChatMessage { - historyId:string, + historyId: string; role: RoleEnum; content?: ChatContent; - state?: null | '1' | '0' - + state?: null | '1' | '0'; } export const roleImageMap = { [RoleEnum.user]: userPic, [RoleEnum.assistant]: assistantPic, - [RoleEnum.system]: userPic, }; - -- Gitblit v1.9.3