I am using GitHub Copilot (based on one of the OpenAI models) on regular basis. It does some amazing code autocomplete, saving me often plenty of key strokes. Occasionally I will even use a whole function from the suggestion.
When it comes to whole functioning blocks of code - I have attempted a couple of times using both Copilot and ChatGPT and the answer is that, they are sometimes correct, sometimes not. If they are not correct, trying to debug the error might take more time, than just writing the whole thing from scratch.
There might be so many things wrong with it. First point is that it is using fetch method to update airtable instead of using the native Airtable script, second is they are also made synchronously. Not sure if this Google Youtube endpoint will work just on API key without Oauth connection. This should also be checked.