yangyin
2024-07-15 78137be892b6810b54ba70f27c28a69a7179e603
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,
};