Repository navigation
fix(prices): fix xai/grok-4 capabilities - #41376
HoosseinRahimi wants to merge 1 commit into
Conversation
Greptile SummaryThis PR updates Grok-4 capability metadata and removes deprecation dates from ten xAI model entries. The root and backup maps remain byte-for-byte identical, but an existing xAI registry test still classifies those entries as retired and will fail Confidence Score: 4/5This PR is not safe to merge until the xAI retired-slug test and intended lifecycle classification are made consistent Removing deprecation_date from the Grok-4 entries makes the unchanged registry assertion disagree with the price maps, causing the xAI test suite to fail Files Needing Attention: model_prices_and_context_window.json, litellm/model_prices_and_context_window_backup.json Important Files Changed
Reviews (1): Last reviewed commit: "fix(prices): fix xai/grok-4 capabilities..." | Re-trigger Greptile |
| "supports_reasoning": true, | ||
| "supports_response_schema": true, | ||
| "supports_vision": true, |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
b76bef3 to
efbb26e
Compare
efbb26e to
6832ba5
Compare
TLDR
Problem this solves:
model_prices_and_context_window.jsonandlitellm/model_prices_and_context_window_backup.json, capability flags (supports_reasoning,supports_vision, andsupports_response_schema) were missing onxai/grok-4and its snapshot aliases.How it solves it:
xai/grok-4,xai/grok-4-0709,xai/grok-4-latest, andxai/grok-4-fast-reasoningwith"supports_reasoning": true,"supports_vision": true, and"supports_response_schema": true.xai/grok-4-fast-non-reasoningwith"supports_vision": trueand"supports_response_schema": true."deprecation_date": "2026-05-15"in accordance with xAI redirected slug requirements and regression tests.model_prices_and_context_window.jsonandlitellm/model_prices_and_context_window_backup.jsonbyte-for-byte identical.Relevant issues
Fixes #41370
Type
🐛 Bug Fix
Pre-Submission checklist
python ci_cd/cost_map_guard.py).