feat(models): add grok-4.6 and make it the xAI flagship - #6624
Conversation
Verified every field against xAI's live API with the staging hosted key: context_length 500000, $2.00/$0.50/$6.00 per 1M, temperature capped at 2, tool calling and max_completion_tokens both accepted. Also feature the latest blog post.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview
Reviewed by Cursor Bugbot for commit 9c6ae59. Configure here. |
Greptile SummaryThe PR registers grok-4.6 as xAI’s recommended default model and promotes the latest security article on the blog index.
Confidence Score: 5/5The PR appears safe to merge with no actionable correctness or security issues identified. The new model is included through the existing data-driven xAI catalog, hosted-model, billing, and provider-resolution paths, while the blog metadata change follows the index’s established featured-post selection behavior.
|
| Filename | Overview |
|---|---|
| apps/sim/providers/models.ts | Adds grok-4.6 to the xAI catalog and moves the provider’s default and recommendation from grok-4.5. |
| apps/sim/providers/models.test.ts | Updates assertions for the new xAI default and confirms both grok-4.6 and grok-4.5 remain hosted. |
| apps/sim/content/blog/secret-provenance/index.mdx | Promotes the secret-provenance article into the date-ranked featured-post set. |
Reviews (1): Last reviewed commit: "feat(models): add grok-4.6 and make it t..." | Re-trigger Greptile
Summary
grok-4.6to the xAI catalog: 500k context, $2.00 in / $0.50 cached / $6.00 out per 1Mrecommended: trueanddefaultModel, both moved offgrok-4.5Verification
Every field was checked against xAI's live API using the staging hosted key, not just the docs:
GET /v1/models/grok-4.6→context_length: 500000,prompt_text_token_price: 20000,cached_prompt_text_token_price: 5000,completion_text_token_price: 60000(units are USD cents per 100M tokens, so $2.00 / $0.50 / $6.00 per 1M) — exact match with the entrytemperature: 2accepted,temperature: 2.5rejected withTemperature must be less than 2→{ min: 0, max: 2 }is rightmax_completion_tokens(the only other paramproviders/xai/index.tssends) acceptedtool_callsarrayreasoningEffortis deliberately not set. xAI documentslow/medium/high/xhighfor this model, butproviders/xai/never reads the flag, so setting it would be a silent no-op. Worth wiring up separately.Priced at the
<200ktier, matching every existing grok entry. xAI doubles rates at the 200k threshold; Sim's schema holds one price pair, so long prompts under-bill — pre-existing across the whole provider, not new here.grok-4.6is hosted and billed automatically, sincegetHostedModels()already includes all ofxai. The staging key pool has access to it today.Type of Change
Testing
models.test.ts,utils.test.ts,pi-providers.test.ts, and the content/landing suites all pass (256 tests). Lint,type-check, andagent-stream-docs:checkclean.Checklist