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 {