-
Notifications
You must be signed in to change notification settings - Fork 1.5k
OPENAI_API_KEY is not set, skipping trace export #190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You need to export env var explicly in your terminal using |
if you want to use an external LLM, you need to disable tracing |
from agents import set_tracing_disabled
set_tracing_disabled(disabled=True) Just apply this code. |
Just wanted to add to this that I get the same error when using python_dotenv. I'm using OpenAI's models, not a 3P model. I set OPENAI_API_KEY in my .env file and then have this at the top of my code:
This still raises the same warning message about skipping trace export. I've found two ways to address this: 1 - set the environment variable explicitly in the terminal ( 2 -
|
@jaijuneja good point. #289 should fix it. |
@rm-openai is it already in the main branch? Still getting the error |
Its merged but not released, the next version (v0.0.7) will have it |
This fix is available now -- https://github.com/openai/openai-agents-python/releases/tag/v0.0.7 |
The text was updated successfully, but these errors were encountered: