Here the steps to bring GPT-3 functionality into any Google Spreadsheet:
Extensions
Apps Script
Now you can write a formula such as:
=GPT3("What is a nickname for the full name "&A17&"?")
or
=GPT3_RANGE($A$26:$A$28,$B$26:$B$28,A29)