-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Description
问题描述
本地开发将插件配置为内置扩展,但是没有调用插件返回插件ui,只有通过安装第三方插件的方式才正常调用插件。
已经在src/tools/index.ts文件添加本地的插件作为内置扩展,配置如下
export const builtinTools: LobeBuiltinTool[] = [ { identifier: FormulaMaster.identifier, manifest: FormulaMaster, type: 'builtin', }, ];
manifest属性值如下,为插件manifest配置
{ $schema: "../../../../../../node_modules/@lobehub/chat-plugin-sdk/schema.json", api: [ { url: "http://localhost:3010/plugin/formula-master/api/generate-formula", name: "generate-formula", description: "根据配方需求,生成配方", parameters: { properties: { priceRequirement: { description: "价格要求", type: "string" }, }, required: [], type: "object" } } ], gateway: "http://localhost:3010/plugin/gateway", author: "jarvis", createdAt: "2025-06-27", identifier: "formula-master", meta: { avatar: "🔥", title: "助手大师", description: "生成配方,优化配方" }, type: "standalone", ui: { url: "http://localhost:3010/plugin/formula-master/ui", height: 200 }, version: "1", systemRole: "" }

