Skip to content

feat(ai): add Grok 4.6 to the model registry - #1113

Merged
wyuc merged 2 commits into
THU-MAIC:mainfrom
YizukiAme:feat/1112-grok-4.6
Aug 13, 2026
Merged

feat(ai): add Grok 4.6 to the model registry#1113
wyuc merged 2 commits into
THU-MAIC:mainfrom
YizukiAme:feat/1112-grok-4.6

Conversation

@YizukiAme

@YizukiAme YizukiAme commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds xAI's Grok 4.6 (grok-4.6) to the built-in Grok catalog so it can be selected out of the box. Reuses the existing OpenAI-compatible xAI endpoint and openai thinking adapter; the only catalog delta vs Grok 4.5 is the documented xhigh reasoning effort.

Related Issues

Closes #1112

Changes

  • Add grok-4.6 first in the Grok provider list (500k context / 500k output, vision, tools)
  • Map thinking as non-toggleable reasoning_effort low / medium / high / xhigh (default high) via a dedicated grok46Effort capability — disabling is coerced to low, matching other always-on effort models
  • Cover catalog placement, metadata, and xhigh request injection in unit tests
  • Update supported-model docs in all locales (also lists Grok 4.5 / 4.3 / Build 0.1 that were already in the catalog) and add a GROK_MODELS example

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring (no functional changes)
  • CI/CD or build changes

Verification

Steps to reproduce / test

  1. Open the model picker and select the Grok provider — Grok 4.6 is listed first
  2. Thinking control offers low / medium / high / xhigh, default high, with no disable/none option
  3. npx vitest run tests/ai/openai-provider.test.ts tests/ai/thinking-config.test.ts tests/ai/model-metadata.test.ts

What you personally verified

  • Targeted tests: 74 passed (RED first: picker still started at grok-4.5 and xhigh was not injected)
  • Full tests/ai suite: 129 passed
  • ESLint clean on the changed TypeScript files
  • Not verified: a live xAI API call with grok-4.6 / xhigh (no key in this environment)

Evidence

  • CI passes (pnpm check && pnpm lint && npx tsc --noEmit)
  • Manually tested locally
  • Screenshots / recordings attached (if UI changes)

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code
  • I have added/updated documentation as needed
  • My changes do not introduce new warnings

🤖 This PR is AI-assisted (built with Cursor Grok 4.6 and self-reviewed per CONTRIBUTING.md).

Made with Cursor Grok 4.6

YizukiAme and others added 2 commits August 13, 2026 12:56
The Grok picker still topped out at 4.5, so the new flagship ID was not selectable with its documented xhigh reasoning effort.

Co-authored-by: Cursor <cursoragent@cursor.com>
Next 16 discovers the repo-root instrumentation.ts from packages/docs, then fails because that file imports app persistence modules. Give the standalone docs app a no-op register() so the Grok catalog docs can build.

Co-authored-by: Cursor <cursoragent@cursor.com>
@wyuc
wyuc merged commit 13d94a5 into THU-MAIC:main Aug 13, 2026
5 checks passed
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.

[Feature]: Add Grok 4.6 to the model registry

2 participants