Skip to content

An openai proxy powered by cloudflare python workers

Notifications You must be signed in to change notification settings

douglarek/cf-openai-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cf-openai-proxy

Usage

To use this proxy, you need to have wrangler installed locally to deploy workers.

Follow these steps:

  1. Clone this repository.

  2. Run wrangler deploy --name xxx, where xxx is the name you want to give your worker.

  3. Set up environment variables:

    • Run wrangler secret put OPENAI_HOST --name xxx to set a custom host for the OpenAI-like API.
    • Run wrangler secret put TOKEN --name xxx to set a fake token, which is generated for protection against leakage.
    • Run wrangler secret put OPENAI_API_KEY --name xxx to set your actual OpenAI API key.

About

An openai proxy powered by cloudflare python workers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages