This is a simple Flask server that uses the ChatGPT(Reverse engineered ChatGPT API)
Edit env/config.yaml
and docker-compose.yml
Build docker image
docker build -t chatgpt-flask-server .
Run it
docker-compose up
Request
{
"message": "Hello"
}
Response
- success
{
"code": 0,
"data": "Hello! How can I assist you today?"
}
- error
{
"code": 1,
"message": "empty request body!"
}