UNPKG

@lobehub/chat

Version:

Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.

30 lines (26 loc) 761 B
import { DEFAULT_AGENT_META } from '@/const/meta'; import { DEFAULT_AGENT_CONFIG } from '@/const/settings'; import { LobeAgentConfig } from '@/types/agent'; import { MetaData } from '@/types/meta'; export type LoadingState = Record<Partial<keyof MetaData> | string, boolean>; export interface State { config: LobeAgentConfig; id?: string; loading?: boolean; loadingState?: LoadingState; meta: MetaData; onConfigChange?: (config: LobeAgentConfig) => void; onMetaChange?: (meta: MetaData) => void; } export const initialState: State = { config: DEFAULT_AGENT_CONFIG, loading: true, loadingState: { avatar: false, backgroundColor: false, description: false, tags: false, title: false, }, meta: DEFAULT_AGENT_META, };