Repository navigation
Conversation
Greptile SummaryAdds Vertex AI metadata for Grok 4.3 so model discovery and cost tracking recognize its 200K context boundary and published pricing tiers.
Confidence Score: 4/5The PR appears safe to merge, with a non-blocking test gap around the production Vertex AI cost-routing path. The added metadata is synchronized and its tier boundary matches the documented rates, but the new pricing test directly invokes the generic helper and therefore cannot detect provider-routing or runtime lookup regressions. Files Needing Attention: tests/test_litellm/test_xai_grok_4_3_model_metadata.py
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Adds the canonical Vertex AI Grok 4.3 metadata with consistent per-token pricing and a strict above-200K tier. |
| litellm/model_prices_and_context_window_backup.json | Mirrors the canonical Grok 4.3 entry in the packaged fallback pricing map. |
| tests/test_litellm/test_xai_grok_4_3_model_metadata.py | Verifies both maps and pricing boundaries, but the pricing test bypasses the production Vertex cost-routing and real lookup path. |
Reviews (1): Last reviewed commit: "feat(vertex-ai): add Grok 4.3 pricing me..." | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Superseded by rolling registry audit #37902, which reverified and absorbed the provider-documented metadata changes at field level |
TLDR
Problem this solves:
How it solves it:
Relevant issues
Linear ticket
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
@greptileaito re-request a review after pushing changes)Delays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review)
Screenshots / Proof of Fix
Google Cloud publishes the following Grok 4.3 rates:
<= 200K> 200KSources:
The model reference lists a 200,000-token context limit while the pricing page also publishes rates above 200K. This entry preserves the documented model limit and both published pricing tiers
Checks run on
3928ca69a4:Type
New Feature
Test
Changes
Adds
vertex_ai/xai/grok-4.3to the primary and bundled model maps with Google Cloud pricing, global availability, context limits, and documented capabilitiesExtends the existing Grok 4.3 metadata tests to cover both Vertex AI model maps and short- versus long-context cost calculation at the 200K boundary
Final Attestation