feat(xai): update model YAMLs [bot] - #2786
Conversation
|
/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 7baa858. Configure here.
| output: | ||
| - cost_per_token: 0.000005 | ||
| from: 200000 | ||
| pricing_mode: cumulative |
There was a problem hiding this comment.
Missing cache-read long-context tier
Medium Severity
The added tiered_pricing raises input and output after 200000 tokens but omits cache_read. This model has prompt_caching and a cache_read_input_token_cost, and official xAI rates plus sibling grok-4.20 non-reasoning YAMLs double cached input to 4e-7 past that threshold, so long-context cache reads stay underpriced.
Reviewed by Cursor Bugbot for commit 7baa858. Configure here.


Auto-generated by poc-agent for provider
xai.Note
Low Risk
Provider catalog YAML only; affects reported pricing and model availability metadata, not runtime application logic in this diff.
Overview
Updates xAI provider YAML definitions for several Grok models—mostly cost metadata and lifecycle status.
Tiered pricing (200k+ tokens, cumulative): Adds
tiered_pricingtogrok-4.20-experimental-beta-0304-non-reasoning(input/output) andgrok-4.20-multi-agent-experimental-beta-0304(cache read, input, output), matching the pattern already used on other Grok 4.x entries.Batch pricing: Raises
input_cost_per_token_batchesandoutput_cost_per_token_batchesongrok-4.20-multi-agent-latest(e.g. batch input from6.25e-7to0.000001, batch output from0.00000125to0.000002).Status: Sets
status: activeongrok-4.5-latestandgrok-imagine-image-2.0.Reviewed by Cursor Bugbot for commit 7baa858. Bugbot is set up for automated code reviews on this repo. Configure here.