From ca955baa6ffdd6ccc28ba936d5050eedf7eb415f Mon Sep 17 00:00:00 2001 From: Sawyer Date: Sat, 3 Oct 2026 00:00:25 -0700 Subject: [PATCH 1/3] feat(web): align Grok proxy model catalog with CLI 1.0.46 (CL-9723) --- apps/web/src/settings/provider-models.test.ts | 17 +++++++++++++++++ apps/web/src/settings/provider-models.ts | 3 +-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 apps/web/src/settings/provider-models.test.ts diff --git a/apps/web/src/settings/provider-models.test.ts b/apps/web/src/settings/provider-models.test.ts new file mode 100644 index 000000000..f19251abc --- /dev/null +++ b/apps/web/src/settings/provider-models.test.ts @@ -0,0 +1,17 @@ +import { describe, expect, test } from "bun:test"; + +import { PROVIDER_MODELS } from "./provider-models"; + +// Mirrors `grok models` on Grok Build CLI 1.0.46 (unauthenticated, served by +// the same cli-chat-proxy.grok.com the xai provider option mints offerings +// against): the default first, then the rest of the listed catalog. +const GROK_CLI_1_0_46_CATALOG = [ + { id: "grok-4.6", label: "Grok 4.6" }, + { id: "grok-4.5", label: "Grok 4.5" }, +] as const; + +describe("xai provider models", () => { + test("matches the Grok Build CLI 1.0.46 proxy catalog, default first", () => { + expect(PROVIDER_MODELS["xai"]).toEqual([...GROK_CLI_1_0_46_CATALOG]); + }); +}); diff --git a/apps/web/src/settings/provider-models.ts b/apps/web/src/settings/provider-models.ts index 21a865907..c63e57ab0 100644 --- a/apps/web/src/settings/provider-models.ts +++ b/apps/web/src/settings/provider-models.ts @@ -23,8 +23,7 @@ export const PROVIDER_MODELS: Readonly> ], xai: [ { id: "grok-4.6", label: "Grok 4.6" }, - { id: "grok-4", label: "Grok 4" }, - { id: "grok-4-fast", label: "Grok 4 Fast" }, + { id: "grok-4.5", label: "Grok 4.5" }, ], codex: [{ id: "gpt-5.5", label: "GPT-5.5" }], custom: [], From a3d9bcf2bab342cfef365e21f40c54800be251fa Mon Sep 17 00:00:00 2001 From: Sawyer Date: Thu, 8 Oct 2026 19:53:40 -0700 Subject: [PATCH 2/3] test(web): pin full Grok 4.7 catalog for the xai provider Mirror the Grok Build CLI 1.0.46 XAI_DEFAULT_MODELS list so the test fails if provider-models.ts drops or reorders any entry. --- apps/web/src/settings/provider-models.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/web/src/settings/provider-models.test.ts b/apps/web/src/settings/provider-models.test.ts index f19251abc..57214c161 100644 --- a/apps/web/src/settings/provider-models.test.ts +++ b/apps/web/src/settings/provider-models.test.ts @@ -6,6 +6,8 @@ import { PROVIDER_MODELS } from "./provider-models"; // the same cli-chat-proxy.grok.com the xai provider option mints offerings // against): the default first, then the rest of the listed catalog. const GROK_CLI_1_0_46_CATALOG = [ + { id: "grok-4.7", label: "Grok 4.7" }, + { id: "grok-4.7-build-fast", label: "Grok 4.7 Build Fast" }, { id: "grok-4.6", label: "Grok 4.6" }, { id: "grok-4.5", label: "Grok 4.5" }, ] as const; From c1ca12e14a3651f11d97ba6197393a43c60544a7 Mon Sep 17 00:00:00 2001 From: Sawyer Date: Thu, 8 Oct 2026 19:53:42 -0700 Subject: [PATCH 3/3] feat(web): add Grok 4.7 models to the xai provider catalog Expose grok-4.7 and grok-4.7-build-fast ahead of grok-4.6 and grok-4.5, keeping grok-4.7 as the host default to match the CLI 1.0.46 list. --- apps/web/src/settings/provider-models.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/web/src/settings/provider-models.ts b/apps/web/src/settings/provider-models.ts index c63e57ab0..5895df0c8 100644 --- a/apps/web/src/settings/provider-models.ts +++ b/apps/web/src/settings/provider-models.ts @@ -22,6 +22,8 @@ export const PROVIDER_MODELS: Readonly> { id: "x-ai/grok-4", label: "Grok 4" }, ], xai: [ + { id: "grok-4.7", label: "Grok 4.7" }, + { id: "grok-4.7-build-fast", label: "Grok 4.7 Build Fast" }, { id: "grok-4.6", label: "Grok 4.6" }, { id: "grok-4.5", label: "Grok 4.5" }, ],