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.

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