Skip to content

fix(platform): retire deprecated xAI Grok models, add grok-4.3#13118

Draft
Torantulino wants to merge 1 commit into
devfrom
fix/xai-grok-model-retirement
Draft

fix(platform): retire deprecated xAI Grok models, add grok-4.3#13118
Torantulino wants to merge 1 commit into
devfrom
fix/xai-grok-model-retirement

Conversation

@Torantulino
Copy link
Copy Markdown
Member

Summary

Removes xAI Grok models being retired on May 15, 2026 per the xAI deprecation notice and replaces them with grok-4.3.

Retired models (May 15 2026)

  • grok-3
  • grok-4 / grok-4-0709
  • grok-4-fast
  • grok-4.1-fast
  • grok-code-fast-1

Replacement

All retired models → x-ai/grok-4.3 per xAI's recommendation.

  • 1M token context window
  • $1.25 / $2.50 per 1M input/output tokens (OpenRouter pass-through)
  • Supports reasoning effort levels (low/medium/high) and non-reasoning mode via effort: none

Changes

File Change
backend/blocks/llm.py Remove GROK_3, GROK_4, GROK_4_FAST, GROK_4_1_FAST, GROK_CODE_FAST_1 from LlmModel enum and metadata; add GROK_4_3
backend/data/block_cost_config.py Remove retired model credit multipliers and token rates; add GROK_4_3 at $1.25/$2.50 pricing
backend/agents/*.json (16 files) Remove retired models from provider maps; add x-ai/grok-4.3
backend/copilot/**/*test*.py (4 files) Update xai/grok-4 test fixtures → xai/grok-4.3

Note: GROK_4_20 and GROK_4_20_MULTI_AGENT are not affected — they remain live.

Retiring May 15 2026 per xAI announcement:
- grok-3, grok-4, grok-4-fast, grok-4.1-fast, grok-code-fast-1

Replacements per xAI recommendation:
- All retired models → grok-4.3 (reasoning + non-reasoning via effort param)

Changes:
- Remove GROK_3, GROK_4, GROK_4_FAST, GROK_4_1_FAST, GROK_CODE_FAST_1
  from LlmModel enum and metadata
- Add GROK_4_3 (x-ai/grok-4.3, 1M context, $1.25/$2.50 per 1M tokens)
- Update token rates and credit multipliers in block_cost_config.py
- Remove retired models from provider maps in 16 agent JSON files
- Update copilot test fixtures to use grok-4.3
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 14, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7cc35a89-da98-406e-a594-982ce29caa29

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/xai-grok-model-retirement

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

🔍 PR Overlap Detection

This check compares your PR against all other open PRs targeting the same branch to detect potential merge conflicts early.

🔴 Merge Conflicts Detected

The following PRs have been tested and will have merge conflicts if merged after this PR. Consider coordinating with the authors.

🟢 Low Risk — File Overlap Only

These PRs touch the same files but different sections (click to expand)

Summary: 5 conflict(s), 0 medium risk, 8 low risk (out of 13 PRs with file overlap)


Auto-generated on push. Ignores: openapi.json, lock files.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.21%. Comparing base (9789cf4) to head (c193d1c).

Additional details and impacted files
@@            Coverage Diff             @@
##              dev   #13118      +/-   ##
==========================================
+ Coverage   71.19%   71.21%   +0.01%     
==========================================
  Files        2203     2203              
  Lines      166432   166424       -8     
  Branches    16963    16963              
==========================================
+ Hits       118492   118516      +24     
+ Misses      44447    44417      -30     
+ Partials     3493     3491       -2     
Flag Coverage Δ
platform-backend 79.76% <100.00%> (+<0.01%) ⬆️
platform-frontend-e2e 31.32% <ø> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Platform Backend 79.76% <100.00%> (+<0.01%) ⬆️
Platform Frontend 40.44% <ø> (+0.09%) ⬆️
AutoGPT Libs ∅ <ø> (∅)
Classic AutoGPT 28.43% <ø> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: 🆕 Needs initial review

Development

Successfully merging this pull request may close these issues.

1 participant