Find answers from the community

Home
Members
nimnems
n
nimnems
Offline, last seen 3 months ago
Joined September 25, 2024
n
nimnems
·

ApiKey

Plain Text
python
import os
os.environ["OPENAI_API_KEY"] = "your_openai_api_key_here"

I'm using the code above to set my openai API key, when trying the Paul graham example, but I keep getting an authentication error.

Is there a better place to set the API key then in the file im running?
26 comments
m
n
E