Getting an error when trying to run the notebook

Because you do not have a valid API key to use. You need to register one on the OpenAI website.