lobe-chat icon indicating copy to clipboard operation
lobe-chat copied to clipboard

[Request] Add support for Cloudflare AI

Open BrandonStudio opened this issue 1 year ago • 5 comments

🥰 Feature Description

Add support for not only chat models, but also embedding, image-generating, tts, etc. via plugin for Cloudflare AI

🧐 Proposed Solution

Add Cloudflare AI chat models for backend, and other models for plugins.

📝 Additional Information

Cloudflare provides various AI models as well as generous free allocation. It is very exciting to take advantage of it.

BrandonStudio avatar Mar 14 '24 08:03 BrandonStudio

👀 @BrandonStudio

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 avatar Mar 14 '24 08:03 lobehubbot

please add request in https://github.com/lobehub/lobe-chat/discussions/1284

arvinxx avatar Mar 14 '24 08:03 arvinxx

✅ @BrandonStudio

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

lobehubbot avatar Mar 14 '24 08:03 lobehubbot

@arvinxx Cloudflare AI as a model provider is just a part of this request. What about the plugin part? Do you consider allowing alternative TTS and speech recognition service?

Besides, other models in Cloudflare AI such as image generation are possible to become plugins, but not in the most simple way. The ideal approach to call those models is to simply call official API with custom path /.../{CLOUDFLARE_ACCOUNT_ID}/... and authorization header and wait for reply. Unfortunately, former is not supported in current plugin system, and latter is not supported on Vercel (timeout).

BrandonStudio avatar Mar 14 '24 09:03 BrandonStudio

alternative TTS and speech recognition service

Ok, it's a good idea. I can reopen it.

arvinxx avatar Mar 14 '24 09:03 arvinxx