Repository navigation
feat(config): add grok-4.7 to the xAI model catalog - #113
Merged
Merged
Conversation
Add the grok-4.7 row to the builtin xAI catalog (xai/grok-4.7, Grok 4.7, reasoning, 500k/500k limits, tiered pricing over 200k input, served over the Responses API) and bump the catalog provenance to the models.dev snapshot it was taken from (2026-09-21). The existing catalog and runtime tests now cover grok-4.7 alongside the older Grok releases.
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.
Summary
Adds
grok-4.7to the builtin xAI model catalog so it can be selected asxai/grok-4.7.There is no runtime/provider change: the xAI provider already targets
https://api.x.ai/v1, and models are a hand-maintained table incrates/qq-config/src/models.rs. This adds one row plus test coverage.User-visible behavior
QQ_MODEL=xai/grok-4.7(or--model xai/grok-4.7) now resolves, with display name Grok 4.7, reasoning enabled, and served over the OpenAI Responses protocol likegrok-4.6/grok-4.5.Design notes
models.dev/api.json(xai → grok-4.7, released 2026-09-21).PROVENANCEis bumped tomodels.dev/api.json@2026-09-21so every builtin pricing record reports the snapshot it actually came from.eval-config.ronLiteLLMus.xai.grok-4.6entry is untouched; that is a separate gateway catalog with its own rates.Verification
cargo test -p qq-config— 89 passed (catalog test now asserts grok-4.7 canonical id, protocol, name, reasoning, limits, base + tiered pricing, provenance)cargo test -p qq --bin qq constructs_xai_runtimes— passes; runtime planning coversxai/grok-4.7cargo fmt --all -- --check— cleancargo clippy -p qq-config --all-targets --all-features -- -D warnings— cleanNot exercised live against the xAI API.
Performance / compatibility
One additional static catalog entry; no hot-path impact. Additive only — existing model ids and routes are unchanged.
Tracking
Linear could not be queried from this session (the
linear_mcpconnection needs reauthorization), so no DEV issue is linked yet.