[RFC] 052 - Cloudflare Workers AI Support #3186
Replies: 4 comments 8 replies
-
there is a PR for it : #2966 |
Beta Was this translation helpful? Give feedback.
-
Thank you for your proposal. But sorry, due to my technical limitations, I only consider implementing basic text generation. |
Beta Was this translation helpful? Give feedback.
-
@arvinxx How to handle an event-stream response?
Parsed:
And tool call response is like
Parsed:
The stream response of a tool call is not a JSON. {"result":{"response":null,"tool_calls":[{"arguments":{"username":"cloudflare"},"name":"getGithubUser"}]},"success":true,"errors":[],"messages":[]} |
Beta Was this translation helpful? Give feedback.
-
@BrandonStudio I will write a post to talk about streaming tools calling these day. Maybe it will help. |
Beta Was this translation helpful? Give feedback.
-
Add Cloudflare Workers AI provider.
Cloudflare Workers AI now supports following types of models:
Where the first 5 types of models can be used in LobeChat.
Required configurations
This can be replaced with endpoint url.
This can be either Bearer token (
Authorization: Bearer {token}
) or API key (X-Auth-Key: {key}
).This allows user to use AI Gateway or their own workers, which may be better than account ID.
Chat model capability
Compatibility
Beta Was this translation helpful? Give feedback.
All reactions