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.

27 lines (22 loc) 768 B
import { StateCreator } from 'zustand/vanilla'; import { ChatStore } from '@/store/chat/store'; import { ChatDallEAction, dalleSlice } from './dalle'; import { ChatCodeInterpreterAction, codeInterpreterSlice } from './interpreter'; import { LocalFileAction, localSystemSlice } from './localSystem'; import { SearchAction, searchSlice } from './search'; export interface ChatBuiltinToolAction extends ChatDallEAction, SearchAction, LocalFileAction, ChatCodeInterpreterAction {} export const chatToolSlice: StateCreator< ChatStore, [['zustand/devtools', never]], [], ChatBuiltinToolAction > = (...params) => ({ ...dalleSlice(...params), ...searchSlice(...params), ...localSystemSlice(...params), ...codeInterpreterSlice(...params), });