I’d like to send a prompt to GPT-3 Codex and for the code to be returned somewhere that I can then execute it, preferably at the command line.
Could someone recommend a basic set-up for this?
I can access the value from the JSON returned but it has “\n” newline characters and such in it.
Is there an easy way to execute the whole string as a program? I tried the Python “exec” command but it didn’t work for me, saying there was an “EOL while scanning literal”.
I have created a small utility called CopyRun for that purpose –