agentops icon indicating copy to clipboard operation
agentops copied to clipboard

[Bug]: LiteLLM conflicts with OpenAI

Open areibman opened this issue 1 year ago • 2 comments

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 image

OpenAI alone: Works image

Import both OpenAI and LiteLLM - Doesn't Work image

Same does not apply when you only use LiteLLM image

🤝 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.

areibman avatar Oct 29 '24 16:10 areibman

Working on this

sarath59 avatar Oct 31 '24 02:10 sarath59

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

teocns avatar Nov 14 '24 14:11 teocns

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.