-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
✨ feat: Support Cloudflare Workers AI #3402
Conversation
This commit adds support for Cloudflare as a model provider. It includes changes to the `ModelProvider` enum, the `UserKeyVaults` interface, the `getServerGlobalConfig` function, the `DEFAULT_LLM_CONFIG` constant, the `getLLMConfig` function, the `AgentRuntime` class, and the `DEFAULT_MODEL_PROVIDER_LIST` constant.
703e74c
to
fa25217
Compare
This comment was marked as outdated.
This comment was marked as outdated.
OK |
BTW, I strongly require a sort of model providers, so that we will meet much less conflicts, see #3411. |
I agree with you. I'm considering a new UI to configuration model providers and sort for them. Maybe will implement it in the next few months |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3402 +/- ##
==========================================
- Coverage 92.55% 92.54% -0.02%
==========================================
Files 517 520 +3
Lines 36844 37252 +408
Branches 3442 3511 +69
==========================================
+ Hits 34100 34473 +373
- Misses 2744 2779 +35
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@arvinxx Do you know how to fix this?
|
remove the |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
❤️ Great PR @BrandonStudio ❤️ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
## [Version 1.30.0](v1.29.6...v1.30.0) <sup>Released on **2024-11-11**</sup> #### ✨ Features - **misc**: Support Cloudflare Workers AI. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Support Cloudflare Workers AI, closes [#3402](#3402) [/github.com/vercel/next.js/issues/38736#issuecomment-1278917422](https://github.com//github.com/vercel/next.js/issues/38736/issues/issuecomment-1278917422) ([efb7adf](efb7adf)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
🎉 This PR is included in version 1.30.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [Version 1.73.0](v1.72.4...v1.73.0) <sup>Released on **2024-11-12**</sup> #### ✨ Features - **misc**: Add support xAI provider, Support Cloudflare Workers AI. #### 💄 Styles - **misc**: Fix Windows always showing scrollbar. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Add support xAI provider, closes [lobehub#4627](https://github.com/bentwnghk/lobe-chat/issues/4627) ([49e1e08](49e1e08)) * **misc**: Support Cloudflare Workers AI, closes [lobehub#3402](https://github.com/bentwnghk/lobe-chat/issues/3402) [/github.com/vercel/next.js/issues/38736#issuecomment-1278917422](https://github.com//github.com/vercel/next.js/issues/38736/issues/issuecomment-1278917422) ([efb7adf](efb7adf)) #### Styles * **misc**: Fix Windows always showing scrollbar, closes [lobehub#4502](https://github.com/bentwnghk/lobe-chat/issues/4502) ([780a2a9](780a2a9)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
✖ Does not support function calling for now.
Only stable models (not beta) are enabled by default.
📝 补充信息 | Additional Information
Based on #2966 by @sxjeru.
i18n by @sxjeru and groq/llama-3.1-8b-instant.