[Bug]: Sessions not detected with CrewAI + Azure OpenAI endpoints
Contact Details
📦 Package Version
0.4.5
🎞️ Framework Version
0.108.0
🔎 Describe the Bug
Im using a CrewAI Flow with Agents using Azure openAI models (gpt-4o)
main.py ->
load_dotenv()
agentops.init(
api_key="API_KEY",
default_tags=['crewai']
)
The sessions are not recorded at all
🤝 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.
Hey @applisi-dla -- 2 questions:
- Does an AgentOps url appear in the terminal when you run your script?
- Does this work with models other than Azure OpenAI?
I am also facing this issue, and I am using the standard OpenAI endpoint. The URL was present in previous versions of AgentOps, but it is no longer showing in the AgentOps dashboard after updating to the latest version.
I looked into this and found that the AgentOps listener in CrewAI attempts to create a new session during the CrewKickoffStartedEvent, but it requires the AgentOps API key to be present in the environment or explicitly passed. Additionally, it appears a session had already been initialized earlier.