From b8dc9eeb53ce361f3142ea8de2c46244ecd9d5d6 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期二, 16 七月 2024 16:16:51 +0800 Subject: [PATCH] map 类型 --- src/components/chat/model/types.ts | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/chat/model/types.ts b/src/components/chat/model/types.ts index 920de4f..6c62a81 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 = { @@ -26,8 +28,8 @@ } export const AnswerState = { Null: null, - Like: 1, - Unlike: 0, + Like: '1', + Unlike: '0', }; export type AnswerStateType = typeof AnswerState; @@ -35,14 +37,14 @@ export type ChatContent = { type: AnswerType; values: any; + error?: string; }; export interface ChatMessage { - historyId:string, + historyId: string; role: RoleEnum; content?: ChatContent; - state?: null | 1 | 0 - + state?: null | '1' | '0'; } export const roleImageMap = { @@ -50,4 +52,3 @@ [RoleEnum.assistant]: assistantPic, [RoleEnum.system]: userPic, }; - -- Gitblit v1.9.3