To use this proxy, you need to have wrangler installed locally to deploy workers.
Follow these steps:
-
Clone this repository.
-
Run
wrangler deploy --name xxx, wherexxxis the name you want to give your worker. -
Set up environment variables:
- Run
wrangler secret put OPENAI_HOST --name xxxto set a custom host for the OpenAI-like API. - Run
wrangler secret put TOKEN --name xxxto set a fake token, which is generated for protection against leakage. - Run
wrangler secret put OPENAI_API_KEY --name xxxto set your actual OpenAI API key.
- Run