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?