diff --git a/README.md b/README.md index afea151..02b64fc 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,5 @@ * You'll need to run WhatsApp from a phone number using the golang library I'm using. * You'll run a dedicated browser in another window that's controlling ChatGPT. * Two terminals: `go run main.go`, and `python server.py`. I am extremely doubtful they will work for you on the first run. +* You can also try `multichat.py` if you want to watch two ChatGPTs talk to each other. * This marks the end of the readme file; it is a bit sparse; thankfully the code is too! Just tuck in if you can... and I will try to add more here later. diff --git a/multichat.py b/multichat.py index 5074811..ac434d0 100644 --- a/multichat.py +++ b/multichat.py @@ -1,10 +1,11 @@ """Get ChatGPT to talk to itself.""" -import os -import sys -import subprocess import requests +# Launch two instances of server.py +# python3 server.py --port 5001 --profile /tmp/chat1 +# python3 server.py --port 5002 --profile /tmp/chat2 + metaprompt = "Now make that funnier." chat1 = requests.get("http://localhost:5001/chat?q=%s" % "Teach me about quantum mechanics in a 140 characters or less.") while True: