gerson
2024-07-19 c6e3c33979ab6ed1aa6a834f39c85356320c0f93
src/components/chat/model/types.ts
@@ -11,6 +11,7 @@
   Text = 'text',
   Summary = 'summary',
   Url = 'url',
   Map = 'map',
}
export const answerTypeMapCom = {
@@ -32,11 +33,19 @@
};
export type AnswerStateType = typeof AnswerState;
export type ContextHistory = {
   /** @description 数字字符串 */
   ratio:string;
   history_id:string;
   question:string;
}
export type ChatContent = {
   type: AnswerType;
   values: any;
   error?:string;
   msg?: string;
   askMoreList?:ContextHistory[];
   errCode?:string;
   origin?:any;
};
export interface ChatMessage {