Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 601 Bytes

README.md

File metadata and controls

24 lines (21 loc) · 601 Bytes

play-chatgpt

Usage

Install dependencies

npm i

Run

OPENAI_EMAIL="<YOUR-EMAIL>" OPENAI_PASSWORD="<YOUR-PASSWORD>" node index.mjs
# a browser window will open, if it can't login automatically, you can help it by logging in manually

Usage

# then try it with
curl "http://localhost:8661/?q=hello"
# >> {answer: "xxx", sameConversationUrlComponent: "&conversationId=123&parentMessageId=456"}
# then try it with
curl "http://localhost:8661/?q=hello&conversationId=123&parentMessageId=456"

Credits

https://github.com/transitive-bullshit/chatgpt-api