luiscruzga / chatgpt-webapi

Implementation of transitive-bullshit/chatgpt-api as web api running on a docker container

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chatgpt-webapi

Implementation of transitive-bullshit/chatgpt-api as web api running on a docker container

RUN

docker run --restart=always -dp 8080:8080 chatgpt-webapi

REQUEST

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

RESPONSE

Good

BODY
    {
        "response":"Hello!
    }

CONTENT TYPE
    application/json  

Bad

BODY
    {
        "error":"[string] or [object]"
    }

CONTENT TYPE
    application/json

BUILD

 docker build -t chatgpt-webapi .

About

Implementation of transitive-bullshit/chatgpt-api as web api running on a docker container


Languages

Language:JavaScript 93.8%Language:Dockerfile 5.3%Language:Shell 0.9%