Skip to content

fix: remove litellm and transitive dependents (quarantined on PyPI)#12302

Closed
ogabrielluiz wants to merge 1 commit intorelease-1.8.3from
fix/remove-litellm-dependency
Closed

fix: remove litellm and transitive dependents (quarantined on PyPI)#12302
ogabrielluiz wants to merge 1 commit intorelease-1.8.3from
fix/remove-litellm-dependency

Conversation

@ogabrielluiz
Copy link
Copy Markdown
Contributor

Summary

  • litellm has been quarantined on PyPI, blocking all fresh installs
  • Removed litellm and all packages that transitively depend on it: astra-assistants, dspy-ai, agent-lifecycle-toolkit, opik
  • Replaced the direct import litellm in crewai crew.py with a generic exception catch
  • Component code is left intact -- it simply won't load when the packages aren't installed

@github-actions github-actions Bot added the community Pull Request from an external contributor label Mar 24, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 24, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 4ee22263-820d-4cdf-8d74-f4e35824ade3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/remove-litellm-dependency

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added the bug Something isn't working label Mar 24, 2026
@ogabrielluiz ogabrielluiz removed the community Pull Request from an external contributor label Mar 24, 2026
@ogabrielluiz ogabrielluiz force-pushed the fix/remove-litellm-dependency branch from 0bc1fee to 0bc343a Compare March 24, 2026 15:09
@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Mar 24, 2026
@ogabrielluiz ogabrielluiz changed the base branch from main to release-1.9.0 March 24, 2026 15:10
@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Mar 24, 2026
@Adam-Aghili Adam-Aghili enabled auto-merge March 24, 2026 16:02
@Adam-Aghili Adam-Aghili disabled auto-merge March 24, 2026 16:20
litellm has been quarantined on PyPI, making it uninstallable.
This removes litellm and all packages that transitively depend on it
(astra-assistants, dspy-ai, agent-lifecycle-toolkit, opik) from the
dependency declarations. The component code remains intact and will
simply not load when the packages are not installed.
@ogabrielluiz ogabrielluiz force-pushed the fix/remove-litellm-dependency branch from 0bc343a to 0ee8929 Compare March 24, 2026 16:32
@ogabrielluiz ogabrielluiz changed the base branch from release-1.9.0 to release-1.8.3 March 24, 2026 16:32
@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Mar 24, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Migration Validation Passed

All migrations follow the Expand-Contract pattern correctly.

@github-actions
Copy link
Copy Markdown
Contributor

Frontend Unit Test Coverage Report

Coverage Summary

Lines Statements Branches Functions
Coverage: 23%
23.49% (8246/35103) 16.2% (4466/27557) 16.26% (1200/7376)

Unit Test Results

Tests Skipped Failures Errors Time
2723 0 💤 0 ❌ 0 🔥 46.253s ⏱️

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 24, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 37.50%. Comparing base (63ad0ec) to head (0ee8929).

Files with missing lines Patch % Lines
src/lfx/src/lfx/base/agents/crewai/crew.py 0.00% 1 Missing ⚠️

❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (40.00%). You can increase the patch coverage or adjust the target coverage.
❌ Your project status has failed because the head coverage (41.78%) is below the target coverage (60.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                @@
##           release-1.8.3   #12302      +/-   ##
=================================================
+ Coverage          37.46%   37.50%   +0.04%     
=================================================
  Files               1593     1593              
  Lines              78398    78397       -1     
  Branches           11890    11890              
=================================================
+ Hits               29368    29404      +36     
+ Misses             47356    47319      -37     
  Partials            1674     1674              
Flag Coverage Δ
frontend 21.05% <ø> (ø)
lfx 41.78% <0.00%> (+0.15%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/lfx/src/lfx/base/agents/crewai/crew.py 21.36% <0.00%> (+18.82%) ⬆️

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants