Backend server for ChatGPT With Voice, now using the ✨ official ChatGPT APIs ✨. You can check out the website, or find the frontend repo on GitHub.
Clone this repo.
git clone https://github.com/sonngdev/chatgpt-server.git
Prepare environment variables by creating .env
at the project root. You need to sign up for an OpenAI API Key.
PORT=8000 # Or whichever port available
OPENAI_API_KEY="<your-openai-api-key>"
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
# Run locally, or...
npm run dev
# Run on production
npm run build
npm run start
Thank you Travis Fischer for your chatgpt
package.