Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

docs(x-grok): log order 042, Grok ids now come from one catalog checked against xAI

nirholase8c8f5acd8d1
diff --git a/prompts/finish/_context/x-grok-PROGRESS.md b/prompts/finish/_context/x-grok-PROGRESS.md
index e3b0dd46a..71150c223 100644
--- a/prompts/finish/_context/x-grok-PROGRESS.md
+++ b/prompts/finish/_context/x-grok-PROGRESS.md
@@ -44,3 +44,9 @@ Cross-session handoff for the `x-grok-` orders ([x-grok-00-CONTEXT.md](x-grok-00
- Step 0 measured: generation text had viewer, AR and download links but no poster or embed; `structuredContent` had camelCase `glbUrl`/`viewerUrl` only. `search_catalog` text listed ids only (no links at all). Personas had `glb_url` and the embodiment `embed_url` but no viewer or poster. `look_at_model` had `viewer_url` and `ar_url` only.
- Pending jobs (no GLB yet) now carry `viewer_url` = `/viewer?job=<id>`: `public/viewer.html` polls `/api/gpt-forge?job=` and swaps to `?src=` when the job lands. Verified in a real browser on a real job (queued to done in 117 s). Order 028 can return the same link from `get_job`.
- For later orders: a catalog GLB over the renderer's 10 MB cap (every Mixamo character) gets its published PNG thumb as `poster_png_url`; a test pins that cap to `api/render/glb.js`. Reply media for the mention bot (051 to 054) can use `poster_png_url` directly.
+
+## 2026-10-08: order 042 (xAI model catalog refresh) done
+
+- Shipped `3b60a4836`: `GROK_MODELS` in `api/_lib/chat-models.js` is the only place a Grok id is written (context, tools, vision, reasoning efforts, price, OpenRouter mirror, menu flag), with `GROK_RETIRED_ALIASES`, `GROK_DEFAULT_MODEL` (`grok-4.7`, BYOK default) and `GROK_BUDGET_MODEL` (`grok-4.3` with `reasoning_effort: none`, server backstop, previews, intent compilers). Consumers: `llm.js`, `brain/chat.js` (and through it `/api/v1/models` and the shared picker), `api/chat.js`, the embed proxy, `/api/v1` providers, the marketplace preview, both intent compilers, `llm-pricing.js`, and the three static pickers in `src/`. Guard: `tests/grok-model-literals.test.js`. Drift check: `npm run check:xai-models` (`scripts/check-xai-models.mjs`), documented in `docs/ops/llm-lanes.md`. Order file deleted in that commit.
+- Measured: no xAI key anywhere (`.env`, `.env.local`, `three-ws-api` env, Secret Manager), and `api.x.ai/v1/models` answers 401 without one, so the catalog and the drift check ran against xAI's public docs (`docs.x.ai/developers/models.md` plus per-model pages, fetched fine). xAI retired `grok-4-1-fast-*` and seven other slugs on 2026-05-15 and redirects them to `grok-4.3`; our `grok-4.1-fast` default had been a retired slug since then. Current text models: 4.7, 4.6, 4.5, 4.3, 4.20 reasoning, 4.20 non-reasoning, 4.20 multi-agent (Responses API only, catalogued but never routed), Build 0.1. `check:xai-models` reports in sync against the docs.
+- For order 927: once `GROK_API_KEY` exists, run `npm run check:xai-models -- --source=api` to diff against the account's live list (adds price and reasoning-effort checks from the API).