Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bytemate/chatapi-single
Simple and powerful ChatGPT-API-Server
https://github.com/bytemate/chatapi-single
Last synced: 10 days ago
JSON representation
Simple and powerful ChatGPT-API-Server
- Host: GitHub
- URL: https://github.com/bytemate/chatapi-single
- Owner: bytemate
- Archived: true
- Created: 2023-02-11T13:07:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-28T08:50:10.000Z (12 months ago)
- Last Synced: 2024-08-01T15:14:32.981Z (3 months ago)
- Language: TypeScript
- Size: 280 KB
- Stars: 537
- Watchers: 9
- Forks: 74
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ChatGPT-repositories - chatapi-single - Simple and powerful ChatGPT-API-Server (Others)
- chatgpt-awesome - chatapi-single
README
Welcome to chatgpt-api-single 👋
> Chatgpt-api-single is a simple, easy-to-use API server that comes with a queueing capability to prevent large-scale failures due to excessive access. It has a simple encapsulation and comes with a Dockerfile, so all you need to do is modify the environment variables to get started. :thumbsup:
## Quick Start
```sh
docker run -d --name chatgpt-api-single -e EMAIL= -e PASSWORD= -p 4000:4000 -v ${PWD}/data:/app/data ghcr.io/bytemate/chatapi-single:main
# See log
docker logs -f chatgpt-api-single
```
## Config```sh
cp .env.example .env
```**Modify the environment variables in .env**
```dotenv
# Require
EMAIL=
# Require
PASSWORD=
IS_PRO_ACCOUNT=false
MARKDOWN=false
DEBUG=false
IS_GOOGLE_LOGIN=false
IS_MICROSOFT_LOGIN=false
MINIMIZE=false
CAPTCHA_TOKEN=
NOPECHA_KEY=
EXECUTABLE_PATH=
PROXY_SERVER=
USER_DATA_DIR=
```
## Install```sh
npm i
npx prisma migrate deploy
```## Usage
```sh
npm run start
```
## How to use### OneTime Message
```sh
curl -X "POST" "http://localhost:4000/message" \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{
"message": "Hello"
}'
```
### Session Message
```sh
curl -X "POST" "http://localhost:4000/message/holegots" \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{
"message": "Hello"
}'
```## Author
👤 **Holeogts**
* Twitter: [@fuergaosi](https://twitter.com/fuergaosi)
* Github: [@fuergaosi233](https://github.com/fuergaosi233)## Show your support
Give a ⭐️ if this project helped you!
***
_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_