Cloudflare Worker script to proxy OpenAI requests to Azure OpenAI Service
Top 26.1% on sourcepulse
This project provides a Cloudflare Worker script to proxy requests from OpenAI-compatible clients to Azure OpenAI Service. It enables users to leverage Azure's offerings, including free tiers and simpler setup, with standard OpenAI clients that typically lack direct Azure support. The solution is ideal for developers and users seeking an accessible way to utilize Azure OpenAI models without managing their own infrastructure.
How It Works
The script acts as a serverless intermediary, running on Cloudflare's edge network. It intercepts requests intended for OpenAI's API and reroutes them to a specified Azure OpenAI Service endpoint. Key advantages include its zero-infrastructure requirement, free tier usage on Cloudflare (up to 100,000 requests daily), and the ability to emulate "printer mode" by streaming responses chunk by chunk, mimicking the behavior of some OpenAI clients.
Quick Start & Requirements
cf-openai-azure-proxy.js
script to a Cloudflare Worker.Highlighted Details
Maintenance & Community
The project appears to be maintained by a single contributor (haibbo
). Community interaction and issue reporting are encouraged via GitHub Issues.
Licensing & Compatibility
The repository does not explicitly state a license in the provided README text. Compatibility for commercial use or closed-source linking would depend on the unstated license.
Limitations & Caveats
The README does not specify a license, which may impact commercial use or integration into closed-source projects. The project relies on Cloudflare's free tier limits, which could be a constraint for high-volume usage.
1 year ago
1 week