CoolFace
Apppublic

MigsAdventure/openai-proxy

sourceHugging Faceupdated 3y agoView on Hugging Face
3likes
.env.example21 linesDownload Raw Back to root
1# Copy this file to .env and fill in the values.2 3# Uncomment the following line and replace the value with your own secret key4# to control access to the proxy server5# PROXY_KEY=your-secret-key6 7# Set your OpenAI API key below.8OPENAI_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx9 10# You can also set a base-64 encoded JSON array of keys matching this schema:11# Trial keys will be prioritized. GPT4-enabled keys are necessary to use GPT-4.12# For example:13# [14#  { "key": "your-openai-key-1", "isTrial": true, "isGpt4": false },15#  { "key": "your-openai-key-2", "isTrial": false, "isGpt4": false },16#  { "key": "your-openai-key-3", "isTrial": false, "isGpt4": true }17# ]18# Encoded in base-64, this would look like:19# OPENAI_KEYS=WwogeyAia2V5IjogInlvdXItb3BlbmFpLWtleS0xIiwgImlzVHJpYWwiOiB0cnVlLCAiaXNHcHQ0IjogZmFsc2UgfSwKIHsgImtleSI6ICJ5b3VyLW9wZW5haS1rZXktMiIsICJpc1RyaWFsIjogZmFsc2UsICJpc0dwdDQiOiBmYWxzZSB9LAogeyAia2V5IjogInlvdXItb3BlbmFpLWtleS0zIiwgImlzVHJpYWwiOiBmYWxzZSwgImlzR3B0NCI6IHRydWUgfQpd20  21