From 78137be892b6810b54ba70f27c28a69a7179e603 Mon Sep 17 00:00:00 2001 From: yangyin <1850366751@qq.com> Date: 星期一, 15 七月 2024 15:59:35 +0800 Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/WI/Web.V1.0 --- src/components/chat/model/types.ts | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/chat/model/types.ts b/src/components/chat/model/types.ts index 920de4f..67f1e76 100644 --- a/src/components/chat/model/types.ts +++ b/src/components/chat/model/types.ts @@ -10,6 +10,7 @@ RecordSet = 'recordset', Text = 'text', Summary = 'summary', + Url = 'url', } export const answerTypeMapCom = { @@ -26,8 +27,8 @@ } export const AnswerState = { Null: null, - Like: 1, - Unlike: 0, + Like: '1', + Unlike: '0', }; export type AnswerStateType = typeof AnswerState; @@ -35,14 +36,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 +51,3 @@ [RoleEnum.assistant]: assistantPic, [RoleEnum.system]: userPic, }; - -- Gitblit v1.9.3