Getting the API key and setting it in Visual studio code

I face the problem of getting the API key as I generated the key from OpenAI website and then I want to use it in visual studio code it shows authentication errors

Hi @musawer14,

In the very first lesson, at the end of th notebook there’s a mention of how to use your own key.


Hi @musawer14 ,

I generally create a .env file, add a property and load it using os.environ.get in my calling file/function.