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

Support Cloudflare function calling #4671

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

Conversation

BrandonStudio
Copy link
Contributor

@BrandonStudio BrandonStudio commented Nov 12, 2024

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • 📝 docs
  • 🔨 chore

🔀 变更说明 | Description of Change

Complement Cloudflare provider:

  • Support function calling
  • Add Image-to-Text models
  • Complement tests

📝 补充信息 | Additional Information

Won't do in this PR:

  • Embeddings
  • Text-to-Image
  • Text-to-Speech

NOTES:

  • To improve function calling performance, system prompt of plugins is disabled within Cloudflare.
  • Requests with tools get non-stream response.

Former #3402

Copy link

vercel bot commented Nov 12, 2024

@BrandonStudio is attempting to deploy a commit to the LobeHub 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.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.56%. Comparing base (49e1e08) to head (40b8f0f).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4671      +/-   ##
==========================================
+ Coverage   92.53%   92.56%   +0.03%     
==========================================
  Files         522      522              
  Lines       37335    37462     +127     
  Branches     2351     3539    +1188     
==========================================
+ Hits        34547    34676     +129     
+ Misses       2788     2786       -2     
Flag Coverage Δ
app 92.56% <100.00%> (+0.03%) ⬆️
server 97.26% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@BrandonStudio BrandonStudio marked this pull request as ready for review November 12, 2024 07:33
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. 🌠 Feature Request New feature or request | 特性与建议 labels Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌠 Feature Request New feature or request | 特性与建议 size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants