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.

53 lines (45 loc) 1.26 kB
import { LobeChatPluginManifest } from '@lobehub/chat-plugin-sdk'; import { LobeChatPluginMeta, Meta } from '@lobehub/chat-plugin-sdk/lib/types/market'; export enum PluginCategory { All = 'all', GamingEntertainment = 'gaming-entertainment', LifeStyle = 'lifestyle', MediaGenerate = 'media-generate', ScienceEducation = 'science-education', Social = 'social', StocksFinance = 'stocks-finance', Tools = 'tools', WebSearch = 'web-search', } export enum PluginNavKey { Settings = 'settings', Tools = 'tools', } export enum PluginSorts { CreatedAt = 'createdAt', Identifier = 'identifier', Title = 'title', } export interface DiscoverPluginItem extends Omit<LobeChatPluginMeta, 'meta'>, Meta { category?: PluginCategory; } export interface PluginQueryParams { category?: string; locale?: string; order?: 'asc' | 'desc'; page?: number; pageSize?: number; q?: string; sort?: PluginSorts; } export interface PluginListResponse { currentPage: number; items: DiscoverPluginItem[]; pageSize: number; totalCount: number; totalPages: number; } export interface DiscoverPluginDetail extends Omit<DiscoverPluginItem, 'manifest'> { manifest?: LobeChatPluginManifest | string; related: DiscoverPluginItem[]; }