Skip to content

feat(providers): add Cloudflare AI Gateway support#851

Open
hmes98318 wants to merge 2 commits intosipeed:mainfrom
hmes98318:main
Open

feat(providers): add Cloudflare AI Gateway support#851
hmes98318 wants to merge 2 commits intosipeed:mainfrom
hmes98318:main

Conversation

@hmes98318
Copy link

📝 Description

Implements Cloudflare AI Gateway as an OpenAI-compatible provider with support for:

  • Unified Billing mode (cf_token only)
  • BYOK (Bring Your Own Key) mode
  • Cloudflare Workers AI serverless models

Includes provider implementation, configuration support, comprehensive tests, documentation updates, and config examples.

🗣️ Type of Change

  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 📖 Documentation update
  • ⚡ Code refactoring (no functional changes, no api changes)

🤖 AI Code Generation

  • 🤖 Fully AI-generated (100% AI, 0% Human)
  • 🛠️ Mostly AI-generated (AI draft, Human verified/modified)
  • 👨‍💻 Mostly Human-written (Human lead, AI assisted or none)

🔗 Related Issue

None.

📚 Technical Context (Skip for Docs)

🧪 Test Environment

  • Hardware: Mac mini M4
  • OS: macOS 26.2
  • Model/Provider: cloudflare/workers-ai/@cf/openai/gpt-oss-120b, cloudflare/anthropic/claude-sonnet-4.6
  • Channels: Discord

📸 Evidence (Optional)

Click to view Logs/Screenshots screenshot_1 screenshot_2

☑️ Checklist

  • My code/docs follow the style of this project.
  • I have performed a self-review of my own changes.
  • I have updated the documentation accordingly.

Implements Cloudflare AI Gateway as an OpenAI-compatible provider with support for:
- Unified Billing mode (cf_token only)
- BYOK (Bring Your Own Key) mode
- Cloudflare Workers AI serverless models

Includes provider implementation, configuration support, comprehensive tests,
documentation updates, and config examples.
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.

1 participant