chore: enable LiteLLM on Python 3.14 - #14170
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughThis change removes Python 3.14 gating from selected optional dependencies, raises the LiteLLM minimum version, preserves platform restrictions, updates dependency-management fixtures, and adjusts component availability tests. ChangesOptional dependency availability
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 8 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (8 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
✅ Test Coverage AdvisorNo source changes detected without accompanying tests. Thanks for keeping coverage up! 🎉
|
Adam-Aghili
left a comment
There was a problem hiding this comment.
LGTM over all just some minor comments on comments
| "langchain_community", | ||
| # Gated to python_version<'3.14' in pyproject.toml until | ||
| # upstream caps lift. | ||
| # Optional dependencies with platform-specific availability. |
There was a problem hiding this comment.
Maybe the comment is confusing me but isn't litellm and toolguard still not allowed on Intel macOS? Maybe the old comment made more sense?
There was a problem hiding this comment.
LiteLLM and ToolGuard are allowed on Intel macOS now. The remaining Intel macOS exclusion is only on ALTK because of its PyTorch dependency. I clarified the comment in 1fa087a5f to make that distinction explicit.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-1.11.0 #14170 +/- ##
==================================================
+ Coverage 61.08% 61.34% +0.25%
==================================================
Files 2386 2394 +8
Lines 237067 238037 +970
Branches 33477 36746 +3269
==================================================
+ Hits 144817 146021 +1204
+ Misses 90495 90261 -234
Partials 1755 1755
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Why
LiteLLM 1.93.0 is the first release above Langflow's existing floor that supports Python 3.14. Its PyPI metadata declares
Requires-Python >=3.10,<3.15and publishes CPython 3.14 Linux wheels, so the Docker Python 3.14 install no longer needs to exclude LiteLLM or features that depend on it.What changed
litellm>=1.93.0,<2.0.0inlangflow-baseand the workspace overrideOther Python 3.14 markers audited
The remaining markers are intentionally retained:
langchain-pinecone, CUGA, OpenDsStar, and LangWatch still declareRequires-Python <3.14in the versions Langflow permitsValidation
uv lock --checkuv sync --frozen --dry-run --all-extras --python 3.14(688-package resolution succeeds)langflow-base,lfx, andlfx-bundleswheels and verified their finalRequires-DistmetadataSummary by CodeRabbit
New Features
Bug Fixes