Skip to content

API server that wraps ChatGPT endpoints, powered by Express

Notifications You must be signed in to change notification settings

sonngdev/chatgpt-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API server for ChatGPT

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.

Installation

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

Contribution

Thank you Travis Fischer for your chatgpt package.

About

API server that wraps ChatGPT endpoints, powered by Express

Resources

Stars

Watchers

Forks

Packages

No packages published