feat: add Cloudflare Workers AI model provider plugin (puspoaditya) - #2927
Open
puspoaditya wants to merge 40 commits into
Open
feat: add Cloudflare Workers AI model provider plugin (puspoaditya)#2927puspoaditya wants to merge 40 commits into
puspoaditya wants to merge 40 commits into
Conversation
Member
|
Please submit a package only |
…e .difypkg submission)
…e .difypkg submission)
…g (single .difypkg submission)
…eepseek-r1-distill-qwen-32b.yaml (single .difypkg submission)
…lama-3.1-8b-instruct.yaml (single .difypkg submission)
…3-70b-instruct-fp8-fast.yaml (single .difypkg submission)
…scout-17b-16e-instruct.yaml (single .difypkg submission)
…coder-32b-instruct.yaml (single .difypkg submission)
…ingle .difypkg submission)
…ifypkg submission)
…le .difypkg submission)
…ngle .difypkg submission)
…ngle .difypkg submission)
Author
|
Updated the PR to match the current marketplace validator: it now contains exactly one file — The pre-check runs are waiting for approval ( |
Author
|
Fixed all pre-check findings: manifest now includes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plugin Submission
Plugin information
Submission type
What changed
Adds Cloudflare Workers AI as a model provider for Dify — serverless inference over Cloudflare's open-model catalog (Llama 3.3 70B FP8, Llama 3.1 8B, Llama 4 Scout 17B, Qwen 2.5 Coder 32B, DeepSeek R1 Distill Qwen 32B) with a generous free tier.
/client/v4/accounts/{account_id}/ai/v1) — full chat, streaming, and tool calls verifiedRisk level
Required checks
.envfiles,.gitdirectories, virtual environments, caches, logs, or IDE files.PRIVACY.mdor a hosted privacy policy, andmanifest.yamlreferences it.Testing notes
FORCE_VERIFYING_SIGNATURE=falsefor the unsigned community package.finish_reason: tool_calls).@cf/meta/llama-3.1-8b-instructis deprecated upstream (2026-05) — replaced with@cf/meta/infire-llama-3.1-8b-instruct.Security and privacy notes
None. This plugin only sends chat completion requests to the Cloudflare Workers AI API using the account's own API token (CLOUDFLARE_API_TOKEN + CLOUDFLARE_ACCOUNT_ID). It does not execute code, access local files, or fetch arbitrary URLs. See PRIVACY.md for the privacy policy.
Local validation
uv run pytest— 2 tests passed (endpoint URL construction, Account ID requirement).difypkgon Dify Community Edition (Docker,FORCE_VERIFYING_SIGNATURE=false) — provider listed as Ready@cf/meta/llama-3.3-70b-instruct-fp8-fast,@cf/meta/infire-llama-3.1-8b-instruct,@cf/meta/llama-4-scout-17b-16e-instruct,@cf/qwen/qwen2.5-coder-32b-instruct,@cf/deepseek-ai/deepseek-r1-distill-qwen-32bfinish_reason: tool_calls(code interpreter), and Dify's agent_thought displayed the executed tool result