/openai-proxy

A openai api proxy based on Cloudflare Workers & Relare

Primary LanguageTypeScriptMIT LicenseMIT

Header

🚀 The template to deploy an openai api proxy to Cloudflare Workers. The src/index.ts file contains the route definitions of Reflare. The documentation of Reflare can be found here.

Deploy to Cloudflare Workers

Installation

Install wrangler CLI and authorize wrangler with Cloudflare account.

npm install -g wrangler

wrangler login
  • Run npm run dev (need npm run build at first time) to preview openai-proxy with local development server provided by Miniflare.
  • Run npm run deploy to publish Reflare on Cloudflare Workers.