feat(xai): update model YAMLs [bot] - #2785
Open
models-bot[bot] wants to merge 1 commit into
Open
Conversation
Contributor
|
/test-models |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit c7aae30. Configure here.
| from: 200000 | ||
| output: | ||
| - cost_per_token: 0.000005 | ||
| from: 200000 |
There was a problem hiding this comment.
Missing cumulative long-context pricing mode
Medium Severity
New tiered_pricing omits pricing_mode, so the schema default marginal applies. xAI bills grok-4.20 long-context requests as a whole-request tier switch, and sibling 4.20 entries set pricing_mode: cumulative. Prompts over 200k tokens are therefore costed too low.
Reviewed by Cursor Bugbot for commit c7aae30. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Auto-generated by poc-agent for provider
xai.Note
Low Risk
Provider configuration-only changes to pricing tiers, parameter allowlists, and model status; no application or security logic is modified.
Overview
Updates xAI provider YAML for several Grok models to match current pricing and capability metadata.
Grok 4.20 experimental (
grok-4.20-experimental-beta-0304-non-reasoningandgrok-4.20-multi-agent-experimental-beta-0304) now define tiered_pricing on cache read, input, and output tokens above 200k tokens (higher per-token rates). The multi-agent variant also setspricing_mode: cumulative.grok-4.5-latestaddsremoveParams: stop, so thestopsequence parameter is no longer exposed for that model.grok-imagine-image-2.0is set tostatus: active.Reviewed by Cursor Bugbot for commit c7aae30. Bugbot is set up for automated code reviews on this repo. Configure here.