Repository navigation
Conversation
|
|
Greptile SummaryThe PR strengthens strategy-router validation for partial deployment updates by decrypting the stored model before deriving the effective model.
Confidence Score: 5/5The PR appears safe to merge; the prior findings are resolved and no new actionable failures remain. Stored encrypted models are now decrypted before effective-model validation, while decryption failures safely retain the original value. The added tests cover the corrected encrypted-model path, and both previous threads were manually resolved after their underlying concerns were addressed.
|
| Filename | Overview |
|---|---|
| litellm/proxy/management_endpoints/model_management_endpoints.py | Decrypts the stored deployment model before validating strategy-router settings, with graceful fallback when decryption fails. |
| tests/test_litellm/proxy/management_endpoints/test_model_management_endpoints.py | Adds focused regression tests for partial strategy-router updates and fixes the previously missing Final annotations. |
Reviews (2): Last reviewed commit: "fix(proxy): decrypt stored model when va..." | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
TLDR
Problem this solves:
How it solves it:
User Flow
Before: an operator sending a partial PATCH update to an existing deployment could attach router configuration to a non-router model
After: the proxy rejects attaching strategy router settings to non-router models during partial updates
Relevant issues
Fixes #39838
Pre-Submission checklist
uv run pytest tests/test_litellm/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more@greptileaito re-request a review after pushing changes)Type
Bug Fix
Final Attestation