export interface APIResponse { code: number; msg: string; message?: string | null; success?: string; time?: string; token?: string; data?: unknown; } export interface PageParams { code: number; msg: string; message?: string | null; success?: string; time?: string; token?: string; data?: unknown; } export interface ApiPageData { offset: number; limit: number; count: number; totalCount: number; documents: any[]; } export interface EventSourceDataInterface { choices: EventSourceDataChoices[]; created: number; id: string; model: string; object: string; } export type EventSourceData = EventSourceDataInterface | '[DONE]'; export interface EventSourceDataChoices { delta: { content?: string; role?: string; }; finish_reason?: string; index: number; } export interface Conversation { id: string; type: string; title: string; time: string; }