Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to build a simple Flask backend for plugins? #38

Open
ifsheldon opened this issue Dec 26, 2023 · 4 comments
Open

[Question] How to build a simple Flask backend for plugins? #38

ifsheldon opened this issue Dec 26, 2023 · 4 comments
Labels
😇 Help Wanted Need help | 需要帮助 Inactive No response in 30 days | 超过 30 天未活跃

Comments

@ifsheldon
Copy link

🧐 问题描述 | Proposed Solution

How to build a simple Flask backend for plugins? I am not very familiar with js and node, so I am wondering if I can build a Flask backend in Python, but I don't know how to port createLobeChatPluginGateway.

📝 补充信息 | Additional Information

No response

@ifsheldon ifsheldon added the 😇 Help Wanted Need help | 需要帮助 label Dec 26, 2023
@lobehubbot
Copy link
Member

👀 @ifsheldon
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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@arvinxx
Copy link
Contributor

arvinxx commented Dec 26, 2023

We will add a Python plugin template

@ifsheldon
Copy link
Author

When lobehub/lobe-chat#815 get resolved, I think you can just use my template with no changes. Otherwise, the authorization needs to be disabled. Feel free to use my code there.

@lobehubbot lobehubbot added the Inactive No response in 30 days | 超过 30 天未活跃 label Jan 31, 2024
@ifsheldon
Copy link
Author

@arvinxx lobehub/lobe-chat#815 this gets resolved, so my code works fine now. But now the problem is how to use the plugin sdk in non-js code or port it in other languages. I'd like to port this sdk in Rust. Can you give me some guide on how this plugin sdk works in principle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
😇 Help Wanted Need help | 需要帮助 Inactive No response in 30 days | 超过 30 天未活跃
Projects
None yet
Development

No branches or pull requests

3 participants