[Bug]: LiteLLM conflicts with OpenAI
Contact Details
No response
📦 Package Version
0.3.14
🎞️ Framework Version
openai==1.52.2, litellm==1.50.2
🔎 Describe the Bug
LiteLLM alone: Works
OpenAI alone: Works
Import both OpenAI and LiteLLM - Doesn't Work
Same does not apply when you only use LiteLLM
🤝 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.
Working on this
How does LLMTracker co-live with the instrumentation provider? Also what's its deprecation status? do we have a feature flag? I am feeling they collide thus causing issues, but without knowing specifics I can only guess
Closing this issue as it was addressed by PR #987 'Lazy Loading of LLM Libraries to Prevent Duplicate Instrumentation' which was merged on May 19, 2025. The PR specifically addresses duplicate LLM instrumentation conflicts between OpenAI and LiteLLM providers.