/chatgpt-flask-server

A simple Flask server that uses the acheong08 / ChatGPT (Reverse engineered ChatGPT API)

Primary LanguagePython

chatgpt-flask-server

This is a simple Flask server that uses the ChatGPT(Reverse engineered ChatGPT API)

Configuration

Edit env/config.yaml and docker-compose.yml

Usage

Build docker image

docker build -t chatgpt-flask-server .

Run it

docker-compose up

API

POST /chat

Request

{
    "message": "Hello"
}

Response

  • success
{
    "code": 0,
    "data": "Hello! How can I assist you today?"
}
  • error
{
    "code": 1,
    "message": "empty request body!"
}