"""Get ChatGPT to talk to itself."""12import requests34# Launch two instances of server.py5# python3 server.py --port 5001 --profile /tmp/chat16# python3 server.py --port 5002 --profile /tmp/chat278metaprompt = "Now make that funnier."9chat1 = requests.get("http://localhost:5001/chat?q=%s" % "Teach me about quantum mechanics in a 140 characters or less.")10while True:11chat2 = requests.get("http://localhost:5002/chat?q=%s" % (chat1.text.replace(metaprompt, "") + " " + metaprompt))12chat1 = requests.get("http://localhost:5001/chat?q=%s" % (chat2.text.replace(metaprompt, "") + " " + metaprompt))13141516