.env.template
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.
OPENAI_API_KEY
secret
Your openai api key. (required)
CODE
Access passsword, separated by comma. (optional)
PROXY_URL
You can start service behind a proxy
BASE_URL
Override openai api request base url. (optional) Default: https://api.openai.com Examples: http://your-openai-proxy.com
OPENAI_ORG_ID
secret
Specify OpenAI organization ID.(optional) Default: Empty If you do not want users to input their own API key, set this value to 1.
HIDE_USER_API_KEY
secret
(optional) Default: Empty If you do not want users to input their own API key, set this value to 1.
DISABLE_GPT4
(optional) Default: Empty If you do not want users to use GPT-4, set this value to 1.
MIDJOURNEY_PROXY_URL
(optional) Default: Empty, Example: http://127.0.0.1:8080 midjourney proxy url, see: https://github.com/novicezk/midjourney-proxy
MIDJOURNEY_PROXY_API_SECRET
secret
(optional) Default: Empty see: https://github.com/novicezk/midjourney-proxy/wiki/%E9%85%8D%E7%BD%AE%E9%A1%B9 #mj.api-secret