wujingjing
2024-07-16 b8dc9eeb53ce361f3142ea8de2c46244ecd9d5d6
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,
};