A demo repo based on OpenAI GPT-3.5 Turbo API.
Notice: Our API Key limit has been exhausted. So the demo site is not available now.
Setup & Install dependencies
First, you need Node.js installed.
npm i
Make a copy of .env.example
, then rename it to .env
Add your OpenAI API key to .env
OPENAI_API_KEY=sk-xxx...
Run the app
npm run dev
You can control the website through environment variables.
Name | Description | Default |
---|---|---|
OPENAI_API_KEY |
Your API Key for OpenAI. | null |
HTTPS_PROXY |
Provide proxy for OpenAI API. e.g. http://127.0.0.1:7890 |
null |
OPENAI_API_BASE_URL |
Custom base url for OpenAI API. | https://api.openai.com |
HEAD_SCRIPTS |
Inject analytics or other scripts before </head> of the page |
null |
SECRET_KEY |
Secret string for the project. Use for generating signatures for API calls | null |
SITE_PASSWORD |
Set password for site. If not set, site will be public | null |
MIT