lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
40.72k stars 9.27k forks source link

[Request] 建议增加插件开发支持python #3771

Open chung1912 opened 1 week ago

chung1912 commented 1 week ago

🥰 需求描述

目前没有python插件模版,虽然直接通过manifest也可以实现一定的效果,但是没有插件服务gateway。

🧐 解决方案

fastapi易于上手,使用简便,建议基于fastapi提供插件模版以供开发使用

📝 补充信息

No response

lobehubbot commented 1 week ago

👀 @chung1912

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

lobehubbot commented 1 week ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


🥰 Description of requirements

There is currently no python plug-in template. Although certain effects can be achieved directly through the manifest, there is no plug-in service gateway.

🧐 Solution

Fastapi is easy to get started and use. It is recommended to provide plug-in templates based on fastapi for development use.

📝 Supplementary information

No response

dosubot[bot] commented 1 week ago

支持Python插件开发的功能已经在计划中。根据文档,插件系统开发的第四阶段包括创建Python语言开发模板,并且可能会使用FastAPI作为插件模板的一部分。

相关证据:

插件四期 完善的鉴权、可视化配置插件定义、 Plugin SDK CLI 、 Python 语言研发模板、还有什么想法?欢迎参与讨论: #1310 [1].

此外,您可以参考现有的插件开发指南和模板项目来了解如何创建和集成新插件。现有的模板项目使用Next.js作为开发框架,但您可以使用任何能够实现manifest中描述功能的开发框架和语言。更多详细信息可以在LobeChat 插件开发指南中找到 [2].

如果您有更多的想法或建议,欢迎参与讨论并提出您的需求。

To continue talking to Dosu, mention @dosu.

lobehubbot commented 1 week ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Features to support Python plug-in development are already planned. According to the documentation, the fourth phase of plug-in system development includes creating a Python language development template, and may use FastAPI as part of the plug-in template.

Relevant evidence:

Plug-in Phase 4 Complete authentication, visual configuration plug-in definition, Plugin SDK CLI, Python language development template, any other ideas? Welcome to participate in the discussion: #1310 [[1]](https://github.com/lobehub /lobe-chat/blob/main/docs/usage/features/plugin-system.zh-CN.mdx).

Additionally, you can refer to existing plugin development guides and template projects to learn how to create and integrate new plugins. Existing template projects use Next.js as the development framework, but you can use any development framework and language that can implement the functions described in the manifest. More details can be found in the LobeChat Plug-in Development Guide[[2]](https://github.com/lobehub/ lobe-chat/blob/main/docs/usage/plugins/development.mdx).

If you have more ideas or suggestions, you are welcome to participate in the discussion and put forward your needs.

To continue talking to Dosu, mention @dosu.