Closed redfort1987 closed 1 year ago
If you really want to skip this error, just paste the OpenAI key directly into the 'openai.api_key' variable. NOTE: Be careful, if your copy is public.
I also had an error, the env call is not working. I switched to following:
from dotenv import load_dotenv load_dotenv()
openai.api_key = os.getenv("OPENAI_API_KEY")
which worked fine for me.
I just did an export (export OPENAI_API_KEY=sk-blablahblah ) of the key and it worked.
yup i think this is the correct take!
The Python main_no_modal.py command doesn't work. It asks for an open AI API key, which I already put into the .env file.