Skip to content

feat(xai): update model YAMLs [bot]#920

Merged
LordGameleo merged 1 commit intomainfrom
bot/update-xai-20260502-023622
May 5, 2026
Merged

feat(xai): update model YAMLs [bot]#920
LordGameleo merged 1 commit intomainfrom
bot/update-xai-20260502-023622

Conversation

@harshiv-26
Copy link
Copy Markdown
Collaborator

@harshiv-26 harshiv-26 commented May 2, 2026

Auto-generated by poc-agent for provider xai.


Note

Medium Risk
Updates pricing, limits, and supported features for multiple xAI models; misconfigurations here can impact billing, routing, and request parameter validation. Also changes model lifecycle flags/statuses (e.g., deprecating grok-2-image, adjusting grok-4 context window), which may affect availability/selection.

Overview
Refreshes xAI Grok model metadata/configuration across image and chat models.

Image models: adds removeParams to grok-2-image-1212, marks grok-2-image as isDeprecated: true and status: retired, and ensures grok-2-image-latest is status: active.

Chat models: updates costs (including batch pricing) and feature flags (e.g., adds prompt_caching, system_messages, structured_output in places), introduces tiered_pricing for several grok-4* variants, adds a docs sources link for grok-4-fast-non-reasoning, and changes grok-4 pricing plus reduces its context_window from 2000000 to 256000.

Reviewed by Cursor Bugbot for commit 7e6a7e7. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 2, 2026

/test-models

@harshiv-26
Copy link
Copy Markdown
Collaborator Author

Gateway test results

  • Total: 107
  • Passed: 104
  • Failed: 0
  • Validation failed: 0
  • Errored: 0
  • Skipped: 3
  • Success rate: 100.0%
Provider Model Scenarios
xai grok-2-image skipped: skip-check
xai grok-2-image-1212 skipped: skip-check
xai grok-2-image-latest skipped: skip-check
xai grok-3 success: params, structured-output, params:stream, tool-call, tool-call:stream, structured-output:stream
xai grok-3-fast success: params, json-output:stream, structured-output, params:stream, json-output, tool-call:stream, tool-call, structured-output:stream
xai grok-3-mini success: params:stream, structured-output:stream, params, tool-call, tool-call:stream, structured-output, reasoning:stream, reasoning
xai grok-3-mini-fast-latest success: params, tool-call:stream, structured-output:stream, tool-call, params:stream, structured-output, reasoning, reasoning:stream
xai grok-3-mini-latest success: params:stream, params, structured-output, tool-call:stream, structured-output:stream, tool-call, reasoning:stream, reasoning
xai grok-4 success: params, params:stream, tool-call, tool-call:stream, structured-output:stream, structured-output
xai grok-4-1-fast success: params, params:stream, structured-output:stream, structured-output, tool-call, tool-call:stream
xai grok-4-1-fast-non-reasoning success: structured-output, structured-output:stream, params:stream, params, tool-call, tool-call:stream
xai grok-4-1-fast-non-reasoning-latest success: structured-output:stream, structured-output, params:stream, params, tool-call, tool-call:stream
xai grok-4-1-fast-reasoning-latest success: params:stream, params, tool-call:stream, structured-output, tool-call, structured-output:stream
xai grok-4-fast success: params, params:stream, tool-call:stream, structured-output:stream, tool-call, structured-output
xai grok-4-fast-non-reasoning success: structured-output, structured-output:stream, tool-call, tool-call:stream, params, params:stream
xai grok-4-fast-non-reasoning-latest success: params:stream, params, structured-output:stream, structured-output, tool-call, tool-call:stream
xai grok-4-fast-reasoning-latest success: params:stream, params, tool-call:stream, structured-output:stream, structured-output, tool-call
xai grok-4.20-beta-latest success: tool-call:stream, params:stream, params, tool-call, structured-output:stream, structured-output
xai grok-code-fast success: structured-output:stream, params:stream, tool-call:stream, tool-call, structured-output, params
Skipped (3)

xai/grok-2-image — skip-check (skipped)

Skip reason:

unsupported mode 'image'

xai/grok-2-image-1212 — skip-check (skipped)

Skip reason:

unsupported mode 'image'

xai/grok-2-image-latest — skip-check (skipped)

Skip reason:

unsupported mode 'image'

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 7e6a7e7. Configure here.

Comment thread providers/xai/grok-2-image-1212.yaml
@LordGameleo LordGameleo merged commit da7e07c into main May 5, 2026
6 checks passed
@LordGameleo LordGameleo deleted the bot/update-xai-20260502-023622 branch May 5, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants