Skip to content
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

Add litellm support #891

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Add litellm support #891

wants to merge 7 commits into from

Conversation

Dwij1704
Copy link
Contributor

📥 Pull Request

📘 Description
Added LiteLLM Support via callback handlers

  • Automatic session span creation and management
  • Tracing of all LLM API calls (pre, success, and failure events)
  • Support for both synchronous and asynchronous operations
  • Detailed span attributes including:
    • Provider information
    • Model details
    • Message history
    • Response data

🧪 Testing
Test

…lization. Updated attribute extraction to include LLM_COMPLETIONS for better tracking of completions in spans.
Copy link

codecov bot commented Mar 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@Dwij1704 Dwij1704 linked an issue Mar 27, 2025 that may be closed by this pull request
@Dwij1704 Dwij1704 requested a review from the-praxs March 28, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update LiteLLM provider for v4
2 participants