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.

21 lines (15 loc) 700 B
import { ChatStoreState } from '@/store/chat'; const isDallEImageGenerating = (id: string) => (s: ChatStoreState) => s.dalleImageLoading[id]; const isGeneratingDallEImage = (s: ChatStoreState) => Object.values(s.dalleImageLoading).some(Boolean); const isInterpreterExecuting = (id: string) => (s: ChatStoreState) => s.codeInterpreterExecuting[id]; const isSearXNGSearching = (id: string) => (s: ChatStoreState) => s.searchLoading[id]; const isSearchingLocalFiles = (id: string) => (s: ChatStoreState) => s.localFileLoading[id]; export const chatToolSelectors = { isDallEImageGenerating, isGeneratingDallEImage, isInterpreterExecuting, isSearXNGSearching, isSearchingLocalFiles, };