#74
in
Command line interface
#10
in
Library
I asked chatGPT to code a 2 speaker debate function using the unofficial API from revChatGPT ( https://github.com/acheong08/ChatGPT )
Input arguments are initial_topic and max_conversation_length.
I asked it to create a loop which controls this.
After some back and fourth fixing some logic by instructing chatGPT to change things, it finally works, but somehow times out after 4 times going back and fourth (i'm a plus subscriber, but not using the official API)
One possible API is https://github.com/acheong08/ChatGPT
It uses a lurky captcha solving service, as well as chromedriver, which bin patches chrome so that chrome is automatable in a hard to detect way (off the shelf selenium is detectable by websites), but it works quite well, if you can manage to get it running. We've got a ChatGPT slackbot setup, which is quite a bit of fun in a group setting.