@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.
17 lines (14 loc) • 510 B
text/typescript
import { KnowledgeBaseItem } from '@/types/knowledgeBase';
export interface KnowledgeBaseState {
activeKnowledgeBaseId: string | null;
activeKnowledgeBaseItems: Record<string, KnowledgeBaseItem>;
initKnowledgeBaseList: boolean;
knowledgeBaseLoadingIds: string[];
knowledgeBaseRenamingId?: string | null;
}
export const initialKnowledgeBaseState: KnowledgeBaseState = {
activeKnowledgeBaseId: null,
activeKnowledgeBaseItems: {},
initKnowledgeBaseList: false,
knowledgeBaseLoadingIds: [],
};