Implementation of transitive-bullshit/chatgpt-api as web api running on a docker container
docker run --restart=always -dp 8080:8080 chatgpt-webapi
GET
http://localhost:8080/?apiKey=SECRET_AUTH_KEY&message=Hello[&conversationId=XXXX]
POST
http://localhost:8080
BODY
{
'apiKey':'SECRET_AUTH_KEY',
'message':'Hello',
'conversationId':'XXXX' // optional
}
CONTENT TYPE
application/json
BODY
{
"response":"Hello!
}
CONTENT TYPE
application/json
BODY
{
"error":"[string] or [object]"
}
CONTENT TYPE
application/json
docker build -t chatgpt-webapi .