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

✨ feat: Support Cloudflare Workers AI #3402

Open
wants to merge 46 commits into
base: main
Choose a base branch
from

Conversation

BrandonStudio
Copy link
Contributor

@BrandonStudio BrandonStudio commented Aug 5, 2024

💻 变更类型 | Change Type

  • ✨ feat

🔀 变更说明 | Description of Change

  • Support Cloudflare Workers AI text-generation task via official API.
  • Support streams.
  • Support model manifest fetch.
  • Compatible with Cloudflare AI Gateway.

✖ 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.

Copy link

vercel bot commented Aug 5, 2024

@BrandonStudio is attempting to deploy a commit to the LobeHub Pro Team on Vercel.

A member of the Team first needs to authorize it.

@lobehubbot
Copy link
Member

👍 @BrandonStudio

Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

@BrandonStudio BrandonStudio changed the title feat: Support Cloudflare Workers AI ✨ feat: Support Cloudflare Workers AI Aug 5, 2024
@sxjeru sxjeru mentioned this pull request Aug 5, 2024
10 tasks
Comment on lines +9 to +12
getModelBeta,
getModelDisplayName,
getModelFunctionCalling,
getModelTokens,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arvinxx Do I have to export these functions in order to test here?

@BrandonStudio
Copy link
Contributor Author

@arvinxx When would you like to review? It has been a long time.

@arvinxx
Copy link
Contributor

arvinxx commented Sep 10, 2024

@BrandonStudio yes. I will review it this week

@arvinxx
Copy link
Contributor

arvinxx commented Sep 10, 2024

need to rebase with
the latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants