ChatGPT prompt engineering course

Hi I am getting this error when running the Jupyter notebook locally.

AuthenticationError: No API key provided. You can set your API key in code using ‘openai.api_key = ’, or you can set the environment variable OPENAI_API_KEY=). If your API key is stored in a file, you can point the openai module at it with ‘openai.api_key_path = ’. You can generate API keys in the OpenAI web interface. See OpenAI API for details.

Please let me know how I can fix it. I tries using my own generated API key but it shows a RateLimitError.

If you are using your own key and it tells you your rate has exceeded then you can try to generate another key or maybe you have to purchase it further on… I think.

1 Like