The worker script act as adapter to convert Other LLM API to be fully compatible with OpenAI API. So you can use this for many apps where it ask for an OpenAI API key and Base URL.
Currently Azure OpenAI and Anthropic Claude Message are supported
After the script is deployed to cloudflare worker, use the worker URL `
https://xxx.xxx.workers.dev/` as Base URL , and Azure api-key as OpenAI API Key.
https://xxx.xxx.workers.dev/claude` as Base URL , and anthropic api-key in bearer header.
Click the button below to deploy this Cloudflare Worker to your account.
During the deployment process, you will be prompted to enter the following environment variables:
AZURE_RESOURCE_NAME
: Your Azure resource name.AZURE_DEPLOYMENT_NAME
: Your Azure deployment name.
Make sure you have these values ready before starting the deployment.
- Fork this repository to your own GitHub account.
- Go to your repository's settings.
- Navigate to the "Secrets" section.
- Add the following secrets:
CLOUDFLARE_ACCOUNT_ID
: Your Cloudflare Account ID.CLOUDFLARE_API_TOKEN
: Your Cloudflare API Token.
- Click the "Deploy to Cloudflare" button above to start the deployment process.
see Deploy button for any deployment related questions.