Backend server for ChatGPT With Voice. You can check out the website, or find the frontend repo on GitHub.
Clone this repo.
git clone https://github.com/thanhsonng/chatgpt-server.git
Prepare environment variables by creating .env
at the project root. You need to sign up for an OpenAI account here, using email and password.
PORT=8000 # Or whichever port available
OPENAI_EMAIL="<your-openai-email>"
OPENAI_PASSWORD="<your-openai-password>"
Start the server and you are done! Remember to use Node 18 or higher, this is the requirement of this package's core dependency – chatgpt
.
npm install
npm run build
npm run start
Thank you Travis Fischer for your chatgpt
package.