Getting an error when trying to run the notebook

openai.api_key = os.getenv(‘the key I got from openAI’)

Replace the above line in your code with this:

openai.api_key =“YOUR_API_KEY”

If you do not have an API key you can register on the following website:

1 Like