AuthenticationError: No API key provided

hello coders,

when I run the code of Trying generative AI code yourself (optional) in the Google Colab notebook it show the following error --AuthenticationError: No API key provided.–.

I created a secret Key on openAi website but nothing work also.
Any solution please.

Hi @Samah1

Welcome to the community.

If you running the lab outside of deeplearning.ai platform, you have to setup your own API key or credentials.

Best ragards