fix(examples): update grok example to use grok-4.3#2846
Merged
Conversation
The xai/grok-2-latest model is no longer listed in the models.dev API, which causes TestParseExamples to fail in CI (or locally once the ~/.cagent/models_dev.json cache refreshes). Switch the example to grok-4.3, which is currently published, and adjust max_tokens to match the model's 30k output limit.
docker-agent
left a comment
There was a problem hiding this comment.
Assessment: 🟢 APPROVE
This PR fixes a CI test failure by updating examples/grok.yaml from the deprecated xai/grok-2-latest model to xai/grok-4.3, and adjusting max_tokens from 131072 to 30000 to match the new model's output limit.
Changes reviewed:
agents.root.model:xai/grok-2-latest→xai/grok-4.3✅models.grok-model.model:grok-2-latest→grok-4.3✅models.grok-model.max_tokens: 131072 → 30000 ✅ (matches grok-4.3's 30k output limit)
Both references are updated consistently. No bugs found in the changed code.
aheritier
approved these changes
May 21, 2026
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.
Problem
TestParseExamples/../../examples/grok.yamlfails in CI:The
xai/grok-2-latestmodel is no longer published in the models.dev API — thexaiprovider now only exposes thegrok-4.xfamily. The failure is masked locally for anyone whose~/.cagent/models_dev.jsoncache still contains the oldgrok-2-*entries (the cache is valid for 24h before refresh).Fix
Switch
examples/grok.yamltoxai/grok-4.3, which is currently published, and adjustmax_tokensto match the model's 30k output limit.Validation
Now passes.