@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.
36 lines (29 loc) • 843 B
text/typescript
import { LobeChatPluginManifest, Meta } from '@lobehub/chat-plugin-sdk';
import { LobeToolType } from './tool';
export type PluginManifestMap = Record<string, LobeChatPluginManifest>;
export interface CustomPluginParams {
apiMode?: 'openapi' | 'simple';
enableSettings?: boolean;
manifestMode?: 'local' | 'url';
manifestUrl?: string;
useProxy?: boolean;
}
export interface LobeToolCustomPlugin {
customParams?: CustomPluginParams;
identifier: string;
manifest?: LobeChatPluginManifest;
settings?: any;
type: 'customPlugin';
}
export interface InstallPluginMeta {
author?: string;
createdAt?: string;
homepage?: string;
identifier: string;
meta?: Meta;
type: LobeToolType;
}
export interface PluginInstallError {
cause?: string;
message: 'noManifest' | 'fetchError' | 'manifestInvalid' | 'urlError';
}