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.

23 lines (18 loc) 598 B
import { StateCreator } from 'zustand/vanilla'; import { ChatStore } from '@/store/chat/store'; import { AIGenerateAction, generateAIChat } from './generateAIChat'; import { ChatMemoryAction, chatMemory } from './memory'; import { ChatRAGAction, chatRag } from './rag'; export interface ChatAIChatAction extends ChatRAGAction, ChatMemoryAction, AIGenerateAction { /**/ } export const chatAiChat: StateCreator< ChatStore, [['zustand/devtools', never]], [], ChatAIChatAction > = (...params) => ({ ...chatRag(...params), ...generateAIChat(...params), ...chatMemory(...params), });