Are you running this in your own environment, if so you need an OPENAI key. If not try to reset the kernel, and hopefully you haven’t deleted any of the util files by mistake!
Thanks! I found the utils.py where you guided me.
The thing is that I try to run things locally and not via the notebook. I use mac Visual Studio Code. How can I make this utils.py available?
Should I update the $PATH somehow? … What do u suggest me doing?
Hi
I did not really get the last step in this
ImportError: cannot import name ‘get_openai_api_key’ from ‘utils’
after I put the utils file in the same location , how do I set the google api key in the .env location?
Since the kind of error seems to be related to the import from utils.py file, two suggestions to solve this issue could be the following:
Copy and paste the contents of the utlis.py file into your noteboook and print your api key to verify whether is correctly imported in your notebook. Please see screenshot: