Skip to content

[Bug]: Agents SDK onboarding flow assumes OpenAI API key is set in the environmentΒ #837

@dot-agi

Description

@dot-agi

Contact Details

No response

πŸ“¦ Package Version

0.4.3

🎞️ Framework Version

Agents

πŸ”Ž Describe the Bug

In the onboarding flow for the OpenAI agents SDK, it's assumed that the OpenAI API key is set in the environment.

Fix:

Add this in the code before agentops.init is called.

import os

os.environ["OPENAI_API_KEY"] = "<your_api_key>"

🀝 Contribution

  • Yes, I'd be happy to submit a pull request with these changes.
  • I need some guidance on how to contribute.
  • I'd prefer the AgentOps team to handle this update.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions