Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sonngdev/chatgpt-server
API server that wraps ChatGPT endpoints, powered by Express
https://github.com/sonngdev/chatgpt-server
Last synced: about 5 hours ago
JSON representation
API server that wraps ChatGPT endpoints, powered by Express
- Host: GitHub
- URL: https://github.com/sonngdev/chatgpt-server
- Owner: sonngdev
- Created: 2023-01-13T11:51:05.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-26T15:36:54.000Z (about 2 months ago)
- Last Synced: 2024-10-09T17:08:45.547Z (about 1 month ago)
- Language: TypeScript
- Size: 157 KB
- Stars: 30
- Watchers: 2
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API server for ChatGPT
Backend server for **ChatGPT With Voice**, now using the ✨ official ChatGPT APIs ✨. You can check out [the website](https://chatgpt.sonng.dev/), or find the [frontend repo](https://github.com/sonngdev/chatgpt-voice) on GitHub.
## Installation
Clone this repo.```bash
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](https://platform.openai.com/overview).
```t
PORT=8000 # Or whichever port available
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`](https://github.com/transitive-bullshit/chatgpt-api).
```bash
npm install# Run locally, or...
npm run dev# Run on production
npm run build
npm run start
```## Contribution
Thank you [Travis Fischer](https://github.com/transitive-bullshit) for your [`chatgpt`](https://github.com/transitive-bullshit/chatgpt-api) package.