@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.
35 lines (33 loc) • 799 B
text/typescript
export interface ChatAIChatState {
/**
* is the AI message is generating
*/
chatLoadingIds: string[];
chatLoadingIdsAbortController?: AbortController;
inputFiles: File[];
inputMessage: string;
/**
* is the message is in RAG flow
*/
messageRAGLoadingIds: string[];
pluginApiLoadingIds: string[];
/**
* is the AI message is reasoning
*/
reasoningLoadingIds: string[];
searchWorkflowLoadingIds: string[];
/**
* the tool calling stream ids
*/
toolCallingStreamIds: Record<string, boolean[]>;
}
export const initialAiChatState: ChatAIChatState = {
chatLoadingIds: [],
inputFiles: [],
inputMessage: '',
messageRAGLoadingIds: [],
pluginApiLoadingIds: [],
reasoningLoadingIds: [],
searchWorkflowLoadingIds: [],
toolCallingStreamIds: {},
};