feat: add Grok 4.5 and 4.6 models - #351
Open
louisvolant wants to merge 1 commit into
Open
Conversation
Contributor License AgreementAll contributors are covered by a CLA. |
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 the newly released Grok 4.5 and Grok 4.6 models to the hardcoded model registry in
src/grok/models.ts.Currently the CLI only knows models up to Grok 4.3, so both Grok 4.5 and Grok 4.6 must be entered via
--modeland are not listed bygrok models.Changes
grok-4.6— the latest flagship reasoning model.grok-4.5— flagship reasoning model, including itsgrok-4.5-latestandgrok-build-latestaliases.$2 in / $6 outper 1M tokens) and context window (500K) taken directly from the xAI Models API.Verification
grok modelslists both new models with correct metadata.bun run buildsucceeds.src/grok/models.test.tspass.Screenshot
Note
Low Risk
Static catalog metadata only; no runtime, auth, or API behavior changes.
Overview
Registers Grok 4.6 and Grok 4.5 in the hardcoded
MODELSlist inmodels.tssogrok modelsand--modelcan use them without manual IDs.Both entries are reasoning flagships with 500K context and $2 / $6 per 1M input/output tokens. Grok 4.5 also maps aliases
grok-4.5-latestandgrok-build-latest.DEFAULT_MODELremainsgrok-4.3.Reviewed by Cursor Bugbot for commit 5f96638. Configure here.