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.

17 lines (12 loc) 569 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 isSearXNGSearching = (id: string) => (s: ChatStoreState) => s.searchLoading[id]; const isSearchingLocalFiles = (id: string) => (s: ChatStoreState) => s.localFileLoading[id]; export const chatToolSelectors = { isDallEImageGenerating, isGeneratingDallEImage, isSearXNGSearching, isSearchingLocalFiles, };