Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions providers/xai/grok-4.20-non-reasoning-gv2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ costs:
input_cost_per_token: 0.000002
output_cost_per_token: 0.000006
region: "*"
features:
- function_calling
- structured_output
- prompt_caching
limits:
context_window: 2000000
modalities:
input:
- text
Expand Down
6 changes: 6 additions & 0 deletions providers/xai/grok-4.20-reasoning-gv2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ costs:
input_cost_per_token: 0.000002
output_cost_per_token: 0.000006
region: "*"
features:
- function_calling
- structured_output
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reasoning gv2 model missing prompt_caching feature

Medium Severity

The grok-4.20-reasoning-gv2 model defines cache_read_input_token_cost in its pricing but omits prompt_caching from its features list. The non-reasoning variant from this same PR (grok-4.20-non-reasoning-gv2) includes prompt_caching, and so do most other grok-4.20 reasoning siblings (grok-4.20-reasoning, grok-4.20-0309-reasoning, grok-4.20-beta-reasoning). This looks like an accidental omission that would cause consumers of this model definition to not know prompt caching is available.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit f5b914d. Configure here.

limits:
context_window: 2000000
modalities:
input:
- text
Expand All @@ -12,3 +17,4 @@ modalities:
- text
mode: chat
model: grok-4.20-reasoning-gv2
thinking: true
Loading