Hi everyone!
I’m trying to run the labs on my machine.
I’ve downloaded M2_UGL_1.ipynb but, when running the first code cell, I’m receiving the following error:
OpenAIError: Missing credentials. Please pass an `api_key`, `workload_identity`, `admin_api_key`, or set the `OPENAI_API_KEY` or `OPENAI_ADMIN_KEY` environment variable.
In the README.md file, there’s the following recommendation:
Where do I get or generate this .env file?
Thanks!
Hi, guys!
I did some searching yesterday and was able to solve this issue. Basically, we need to create a .env file with the following content (had some help with the AI assistant on VS Code:
The information assigned to OPENAI_API_KEY is an OpenAI API Key that I generated for myself on my account (just do a quick web search to understand how it works). After that, I needed to add some credits on that account to use its resources to run locally on my machine.
Now everything is working perfectly on my machine!
Hope this helps anyone!