diff --git a/docs/concepts/model-providers.md b/docs/concepts/model-providers.md index 97ec18d00b6..0e7f7b82f24 100644 --- a/docs/concepts/model-providers.md +++ b/docs/concepts/model-providers.md @@ -371,7 +371,7 @@ OpenClaw ships with the pi‑ai catalog. These providers require **no** - Provider: `zai` - Auth: `ZAI_API_KEY` -- Example model: `zai/glm-5` +- Example model: `zai/glm-5.1` - CLI: `openclaw onboard --auth-choice zai-api-key` - Aliases: `z.ai/*` and `z-ai/*` normalize to `zai/*` - `zai-api-key` auto-detects the matching Z.AI endpoint; `zai-coding-global`, `zai-coding-cn`, `zai-global`, and `zai-cn` force a specific surface diff --git a/docs/providers/glm.md b/docs/providers/glm.md index 09ce30a4140..49524b83053 100644 --- a/docs/providers/glm.md +++ b/docs/providers/glm.md @@ -35,7 +35,7 @@ openclaw onboard --auth-choice zai-cn ```json5 { env: { ZAI_API_KEY: "sk-..." }, - agents: { defaults: { model: { primary: "zai/glm-5" } } }, + agents: { defaults: { model: { primary: "zai/glm-5.1" } } }, } ``` @@ -64,5 +64,5 @@ OpenClaw currently seeds the bundled `zai` provider with these GLM refs: ## Notes - GLM versions and availability can change; check Z.AI's docs for the latest. -- Default bundled model ref is `zai/glm-5`. +- Default bundled model ref is `zai/glm-5.1`. - For provider details, see [/providers/zai](/providers/zai). diff --git a/docs/providers/zai.md b/docs/providers/zai.md index 5ce9088cd2a..91a478fb28a 100644 --- a/docs/providers/zai.md +++ b/docs/providers/zai.md @@ -36,7 +36,7 @@ openclaw onboard --auth-choice zai-cn ```json5 { env: { ZAI_API_KEY: "sk-..." }, - agents: { defaults: { model: { primary: "zai/glm-5" } } }, + agents: { defaults: { model: { primary: "zai/glm-5.1" } } }, } ``` @@ -65,7 +65,7 @@ OpenClaw currently seeds the bundled `zai` provider with: ## Notes - GLM models are available as `zai/` (example: `zai/glm-5`). -- Default bundled model ref: `zai/glm-5` +- Default bundled model ref: `zai/glm-5.1` - Unknown `glm-5*` ids still forward-resolve on the bundled provider path by synthesizing provider-owned metadata from the `glm-4.7` template when the id matches the current GLM-5 family shape. diff --git a/extensions/zai/model-definitions.ts b/extensions/zai/model-definitions.ts index 8f2365bb45b..70b951f9017 100644 --- a/extensions/zai/model-definitions.ts +++ b/extensions/zai/model-definitions.ts @@ -4,7 +4,7 @@ export const ZAI_CODING_GLOBAL_BASE_URL = "https://api.z.ai/api/coding/paas/v4"; export const ZAI_CODING_CN_BASE_URL = "https://open.bigmodel.cn/api/coding/paas/v4"; export const ZAI_GLOBAL_BASE_URL = "https://api.z.ai/api/paas/v4"; export const ZAI_CN_BASE_URL = "https://open.bigmodel.cn/api/paas/v4"; -export const ZAI_DEFAULT_MODEL_ID = "glm-5"; +export const ZAI_DEFAULT_MODEL_ID = "glm-5.1"; export const ZAI_DEFAULT_MODEL_REF = `zai/${ZAI_DEFAULT_MODEL_ID}`; type ZaiCatalogEntry = {