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.

24 lines (20 loc) 599 B
import { DalleManifest } from '@/tools/dalle'; import { LobeToolMeta } from '@/types/tool/tool'; import type { ToolStoreState } from '../../initialState'; const metaList = (showDalle?: boolean) => (s: ToolStoreState): LobeToolMeta[] => s.builtinTools .filter( (item) => !item.hidden && (!showDalle ? item.identifier !== DalleManifest.identifier : true), ) .map((t) => ({ author: 'LobeHub', identifier: t.identifier, meta: t.manifest.meta, type: 'builtin', })); export const builtinToolSelectors = { metaList, };