From bc932c009001784b7d589b8c42aba85b0d4d9b0b Mon Sep 17 00:00:00 2001 From: ColinM-sys Date: Mon, 27 Apr 2026 02:41:49 -0400 Subject: [PATCH] fix(inference): migrate GLM-5 model references to GLM-5.1 (#1744) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #1744. GLM-5 is deprecated per NVIDIA API Catalog notice (Apr 9 – May 9, 2026 migration window; full shutdown May 9). The successor is GLM-5.1, which the catalog already serves at the same provider prefix. Swap every curated reference to the new model id and label: - src/lib/inference-config.ts — CLOUD_MODEL_OPTIONS picker entry - src/lib/inference-config.test.ts — id-list assertion - src/lib/inventory-commands.test.ts — sandbox-list fixtures - test/onboard-selection.test.ts — mocked /v1/models response - docs/inference/inference-options.md — NVIDIA Endpoints example list - docs/get-started/quickstart.md — NVIDIA Endpoints example list - .agents/skills/nemoclaw-user-configure-inference/references/ inference-options.md - .agents/skills/nemoclaw-user-get-started/SKILL.md No code-path changes. Users with existing sandboxes still pinned to z-ai/glm5 will need to rebuild during the migration window. Signed-off-by: ColinM-sys --- .../references/inference-options.md | 2 +- .agents/skills/nemoclaw-user-get-started/SKILL.md | 2 +- docs/get-started/quickstart.md | 2 +- docs/inference/inference-options.md | 2 +- src/lib/inference-config.test.ts | 2 +- src/lib/inference-config.ts | 2 +- src/lib/inventory-commands.test.ts | 4 ++-- test/onboard-selection.test.ts | 6 +++--- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.agents/skills/nemoclaw-user-configure-inference/references/inference-options.md b/.agents/skills/nemoclaw-user-configure-inference/references/inference-options.md index be95885fa78..75aa4e6e057 100644 --- a/.agents/skills/nemoclaw-user-configure-inference/references/inference-options.md +++ b/.agents/skills/nemoclaw-user-configure-inference/references/inference-options.md @@ -39,7 +39,7 @@ Ollama appears when it is installed or running on the host. | Option | Description | Curated models | |--------|-------------|----------------| -| NVIDIA Endpoints | Routes to models hosted on [build.nvidia.com](https://build.nvidia.com). You can also enter any model ID from the catalog. Set `NVIDIA_API_KEY`. | Nemotron 3 Super 120B, Kimi K2.5, GLM-5, MiniMax M2.5, GPT-OSS 120B | +| NVIDIA Endpoints | Routes to models hosted on [build.nvidia.com](https://build.nvidia.com). You can also enter any model ID from the catalog. Set `NVIDIA_API_KEY`. | Nemotron 3 Super 120B, Kimi K2.5, GLM-5.1, MiniMax M2.5, GPT-OSS 120B | | OpenAI | Routes to the OpenAI API. Set `OPENAI_API_KEY`. | `gpt-5.4`, `gpt-5.4-mini`, `gpt-5.4-nano`, `gpt-5.4-pro-2026-03-05` | | Other OpenAI-compatible endpoint | Routes to any server that implements `/v1/chat/completions`. If the endpoint also supports `/responses` with OpenClaw-style tool calling, NemoClaw can use that path; otherwise it falls back to `/chat/completions`. The wizard prompts for a base URL and model name. Works with OpenRouter, LocalAI, llama.cpp, or any compatible proxy. Set `COMPATIBLE_API_KEY`. | You provide the model name. | | Anthropic | Routes to the Anthropic Messages API. Set `ANTHROPIC_API_KEY`. | `claude-sonnet-4-6`, `claude-haiku-4-5`, `claude-opus-4-6` | diff --git a/.agents/skills/nemoclaw-user-get-started/SKILL.md b/.agents/skills/nemoclaw-user-get-started/SKILL.md index ae3119824c7..ecc2e494632 100644 --- a/.agents/skills/nemoclaw-user-get-started/SKILL.md +++ b/.agents/skills/nemoclaw-user-get-started/SKILL.md @@ -70,7 +70,7 @@ Respond to the wizard as follows. 1. At the `Choose [1]:` prompt, press Enter (or type `1`) to select **NVIDIA Endpoints**. 2. At the `NVIDIA_API_KEY:` prompt, paste your key if it is not already exported. -3. At the `Choose model [1]:` prompt, pick a curated model from the list (for example, **Nemotron 3 Super 120B**, **Kimi K2.5**, **GLM-5**, **MiniMax M2.5**, or **GPT-OSS 120B**), or pick **Other...** to enter any model ID from the [NVIDIA Endpoints catalog](https://build.nvidia.com). +3. At the `Choose model [1]:` prompt, pick a curated model from the list (for example, **Nemotron 3 Super 120B**, **Kimi K2.5**, **GLM-5.1**, **MiniMax M2.5**, or **GPT-OSS 120B**), or pick **Other...** to enter any model ID from the [NVIDIA Endpoints catalog](https://build.nvidia.com). NemoClaw validates the model against the catalog API before creating the sandbox. diff --git a/docs/get-started/quickstart.md b/docs/get-started/quickstart.md index e907948d706..49ab8669967 100644 --- a/docs/get-started/quickstart.md +++ b/docs/get-started/quickstart.md @@ -88,7 +88,7 @@ Respond to the wizard as follows. 1. At the `Choose [1]:` prompt, press Enter (or type `1`) to select **NVIDIA Endpoints**. 2. At the `NVIDIA_API_KEY:` prompt, paste your key if it is not already exported. -3. At the `Choose model [1]:` prompt, pick a curated model from the list (for example, **Nemotron 3 Super 120B**, **Kimi K2.5**, **GLM-5**, **MiniMax M2.5**, or **GPT-OSS 120B**), or pick **Other...** to enter any model ID from the [NVIDIA Endpoints catalog](https://build.nvidia.com). +3. At the `Choose model [1]:` prompt, pick a curated model from the list (for example, **Nemotron 3 Super 120B**, **Kimi K2.5**, **GLM-5.1**, **MiniMax M2.5**, or **GPT-OSS 120B**), or pick **Other...** to enter any model ID from the [NVIDIA Endpoints catalog](https://build.nvidia.com). NemoClaw validates the model against the catalog API before creating the sandbox. diff --git a/docs/inference/inference-options.md b/docs/inference/inference-options.md index b5e07c8a0b5..6c0fc418887 100644 --- a/docs/inference/inference-options.md +++ b/docs/inference/inference-options.md @@ -59,7 +59,7 @@ Ollama appears when it is installed or running on the host. | Option | Description | Curated models | |--------|-------------|----------------| -| NVIDIA Endpoints | Routes to models hosted on [build.nvidia.com](https://build.nvidia.com). You can also enter any model ID from the catalog. Set `NVIDIA_API_KEY`. | Nemotron 3 Super 120B, Kimi K2.5, GLM-5, MiniMax M2.5, GPT-OSS 120B | +| NVIDIA Endpoints | Routes to models hosted on [build.nvidia.com](https://build.nvidia.com). You can also enter any model ID from the catalog. Set `NVIDIA_API_KEY`. | Nemotron 3 Super 120B, Kimi K2.5, GLM-5.1, MiniMax M2.5, GPT-OSS 120B | | OpenAI | Routes to the OpenAI API. Set `OPENAI_API_KEY`. | `gpt-5.4`, `gpt-5.4-mini`, `gpt-5.4-nano`, `gpt-5.4-pro-2026-03-05` | | Other OpenAI-compatible endpoint | Routes to any server that implements `/v1/chat/completions`. If the endpoint also supports `/responses` with OpenClaw-style tool calling, NemoClaw can use that path; otherwise it falls back to `/chat/completions`. The wizard prompts for a base URL and model name. Works with OpenRouter, LocalAI, llama.cpp, or any compatible proxy. Set `COMPATIBLE_API_KEY`. | You provide the model name. | | Anthropic | Routes to the Anthropic Messages API. Set `ANTHROPIC_API_KEY`. | `claude-sonnet-4-6`, `claude-haiku-4-5`, `claude-opus-4-6` | diff --git a/src/lib/inference-config.test.ts b/src/lib/inference-config.test.ts index 81dc9d04434..51e340a1221 100644 --- a/src/lib/inference-config.test.ts +++ b/src/lib/inference-config.test.ts @@ -21,7 +21,7 @@ describe("inference selection config", () => { expect(CLOUD_MODEL_OPTIONS.map((option: { id: string }) => option.id)).toEqual([ "nvidia/nemotron-3-super-120b-a12b", "moonshotai/kimi-k2.5", - "z-ai/glm5", + "z-ai/glm-5.1", "minimaxai/minimax-m2.5", "openai/gpt-oss-120b", ]); diff --git a/src/lib/inference-config.ts b/src/lib/inference-config.ts index 402bd01cccc..2ec9fc68b9d 100644 --- a/src/lib/inference-config.ts +++ b/src/lib/inference-config.ts @@ -13,7 +13,7 @@ export const DEFAULT_CLOUD_MODEL = "nvidia/nemotron-3-super-120b-a12b"; export const CLOUD_MODEL_OPTIONS = [ { id: "nvidia/nemotron-3-super-120b-a12b", label: "Nemotron 3 Super 120B" }, { id: "moonshotai/kimi-k2.5", label: "Kimi K2.5" }, - { id: "z-ai/glm5", label: "GLM-5" }, + { id: "z-ai/glm-5.1", label: "GLM-5" }, { id: "minimaxai/minimax-m2.5", label: "MiniMax M2.5" }, { id: "openai/gpt-oss-120b", label: "GPT-OSS 120B" }, ]; diff --git a/src/lib/inventory-commands.test.ts b/src/lib/inventory-commands.test.ts index d25e34a47ca..2e59411f167 100644 --- a/src/lib/inventory-commands.test.ts +++ b/src/lib/inventory-commands.test.ts @@ -344,7 +344,7 @@ describe("inventory commands", () => { }, { name: "beta", - model: "z-ai/glm5", + model: "z-ai/glm-5.1", }, ], defaultSandbox: "alpha", @@ -361,7 +361,7 @@ describe("inventory commands", () => { expect(lines).toContain(" (onboarded: nvidia/nemotron-3-super-120b-a12b)"); // Non-default sandbox keeps its stored model — the gateway only applies // to whichever sandbox is currently connected. - expect(lines).toContain(" beta (z-ai/glm5)"); + expect(lines).toContain(" beta (z-ai/glm-5.1)"); expect(showServiceStatus).toHaveBeenCalledWith({ sandboxName: "alpha" }); }); diff --git a/test/onboard-selection.test.ts b/test/onboard-selection.test.ts index 81799083331..dd7c14f969b 100644 --- a/test/onboard-selection.test.ts +++ b/test/onboard-selection.test.ts @@ -399,7 +399,7 @@ while [ "$#" -gt 0 ]; do esac done if echo "$url" | grep -q '/v1/models$'; then - body='{"data":[{"id":"moonshotai/kimi-k2.5"},{"id":"z-ai/glm5"}]}' + body='{"data":[{"id":"moonshotai/kimi-k2.5"},{"id":"z-ai/glm-5.1"}]}' fi printf '%s' "$body" > "$outfile" printf '%s' "$status" @@ -411,7 +411,7 @@ printf '%s' "$status" const credentials = require(${credentialsPath}); const runner = require(${runnerPath}); -const answers = ["1", "7", "bad/model", "z-ai/glm5"]; +const answers = ["1", "7", "bad/model", "z-ai/glm-5.1"]; const messages = []; credentials.prompt = async (message) => { @@ -463,7 +463,7 @@ const { setupNim } = require(${onboardPath}); assert.equal(result.status, 0, result.stderr); const payload = JSON.parse(result.stdout.trim()); - assert.equal(payload.result.model, "z-ai/glm5"); + assert.equal(payload.result.model, "z-ai/glm-5.1"); assert.equal( payload.messages.filter((message: string) => /NVIDIA Endpoints model id:/.test(message)) .length,