wujingjing
2024-07-22 4299cce7387e8ea2c5222ff1357f2a6c3459e4a7
src/components/chat/model/types.ts
@@ -24,7 +24,6 @@
export const enum RoleEnum {
   user = 'user',
   assistant = 'assistant',
   system = 'system',
}
export const AnswerState = {
   Null: null,
@@ -35,17 +34,18 @@
export type AnswerStateType = typeof AnswerState;
export type ContextHistory = {
   /** @description 数字字符串 */
   ratio:string;
   history_id:string;
   question:string;
}
   ratio: string;
   history_id: string;
   question: string;
};
export type ChatContent = {
   type: AnswerType;
   values: any;
   msg?: string;
   askMoreList?:ContextHistory[];
   errCode?:string;
   origin?:any;
   askMoreList?: ContextHistory[];
   errCode?: string;
   errMsg?: string;
   origin?: any;
};
export interface ChatMessage {
@@ -58,5 +58,4 @@
export const roleImageMap = {
   [RoleEnum.user]: userPic,
   [RoleEnum.assistant]: assistantPic,
   [RoleEnum.system]: userPic,
};