Repository navigation
fix(model-map): set supports_minimal_reasoning_effort false for gpt-5.1 and gpt-5.4 - #40547
CodeAlex52 wants to merge 1 commit into
Conversation
Greptile SummaryThis PR marks the base
Confidence Score: 5/5The PR appears safe to merge because the synchronized metadata and focused tests consistently enforce the corrected capability behavior No actionable failure remains; both model maps agree, the production mapping path consumes the explicit capability flags, and supported variants retain separate positive coverage
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Corrects minimal reasoning-effort capability metadata for the two affected base models |
| litellm/model_prices_and_context_window_backup.json | Keeps the bundled fallback model map synchronized with the primary map |
| tests/test_litellm/llms/openai/test_gpt5_transformation.py | Adds drop-path regression coverage and updates rejection, supported-model, and capability-helper expectations |
Reviews (1): Last reviewed commit: "fix(model-map): set supports_minimal_rea..." | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Closing in favor of the rolling registry PR #40581, which carries these changes after re-verifying them against the provider source. |
TLDR
Problem this solves:
How it solves it:
User Flow
Before: a developer sending reasoning_effort minimal to gpt-5.1 gets a hard failure
After: the same call has minimal dropped, so no provider error
Relevant issues
Fixes #40473
Linear ticket
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)Screenshots / Proof of Fix
Local param-mapping check with LITELLM_LOCAL_MODEL_COST_MAP=True, no live call
After (PR tip):
The live provider 400 for both models is documented in the linked issue
Type
🐛 Bug Fix
Caveats (if any)
Low
Final Attestation