Here's a brief glimpse of our INCREDIBLE near future. GPT-3 armed with a Python interpreter can · do exact math · make API requests · answer in unprecedented ways Thanks to @goodside and @amasad for the idea and repl! Play with it: replit.com/@SergeyKarayev/gp…
There's so much low-hanging fruit here it's simply insane. · Add first-class support for searching the web, parsing HTML · Add "state" to the prompt, allowing new answers to reference previous answers. · Make a Python library to provide uniform interface to a bunch of free APIs
You do need a repl.it and openai account to run this
For those getting an error trying to run this, after forking the Repl, you need to insert a secret with key OPENAI_API_KEY and value = your Open AI key. See screenshot. Brings to mind the Arthur C Clarke quote about sufficiently advanced tech feeling like magic.
And... caveat emptor, this can be very naughty indeed. mobile.twitter.com/teuber_de…
Replying to @moyix
Funnily enough, in my feed your tweet was exactly above the tweet on using "GPT-3 armed with Python" for question answering: Achieving arbitrary remote code execution seems to be easy enough...
Replying to @flngr
Combined with code generation GPT-3 is incredibly powerful
Just as a minor warning, your new Python-enabled GPT-3 may become possessed by the evil Zlago. Just something to watch out for.
Replying to @sergeykarayev
!! It opened my browser for me when I asked "what happens if you google your own name"

Sep 13, 2022 · 9:18 AM UTC

Side note: I'm trained to be terrified any time I see 'exec' in any kind of installable python library code, so imagine my eyes when I see a browser tab opening as soon as I hit 'Enter'.
Without further research, there's a huge space for unintended consequences with this method. For instance, this question "Find my android phone for me, please?" tries to run "os.system".