Henry.L
November 24, 2023, 1:47am
3
Hi, if you’re still wondering, here is also a post that offers some information on how to set up a jupyter notebook locally by loading an API key. Hope that helps!
Hello! Newbie here. I am taking ChatGPT Prompt Engineering for Developers, and am unable to load the OpenAI API key to follow along with the the course. I am using Google Colab for Jupyter.
I loaded all the packages and dont get any errors when running this code:
import openai
import os
from dotenv import load_dotenv, find_dotenv
_ = load_dotenv(find_dotenv())
openai.api_key = os.getenv(‘OPENAI_API_KEY’)
However, nothing gets loaded into the openai.api_key
Thanks