🤯I just had GPT-3 write me a JavaScript function that lets me call GPT-3 from a Google Sheets script and it works!
I mean...I don't write code!
Even had to ask GPT-3 what language the convoluted example was I had pulled from elsewhere 😅
Sep 21, 2022 · 12:58 PM UTC
step by step:
1. open g sheet, go to extensions > apps script
2. in script, paste this code (any & all bugs / bad things courtesy of GPT-3) justpaste.it/9mh50 - paste your API key in there
3. save script, reload sheet
4. select prompt cell & run via new nav item - boom!
UPDATE!
I got GPT-3 to write me a more general purpose version of this which lets you run a function: "gpt3(PromptCell)" anywhere. PromptCell = cell with ur prompt.
Here's the sheet - make a local copy, then paste your own API key - use at own risk!
docs.google.com/spreadsheets…