From c57b750be4695a4c602034fbe825ae6a5c8a54a6 Mon Sep 17 00:00:00 2001 From: Tomsun28 Date: Sun, 15 Mar 2026 09:19:41 +0800 Subject: [PATCH] feat(provider): support new model zai glm-5-turbo, performs better for openclaw (openclaw#46670) Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: tomsun28 <24788200+tomsun28@users.noreply.github.com> Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com> --- CHANGELOG.md | 1 + src/commands/onboard-auth.config-core.ts | 1 + src/commands/onboard-auth.models.ts | 1 + src/commands/onboard-auth.test.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2525de6b7cb..66cc32c2daf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ Docs: https://docs.openclaw.ai - Z.AI/onboarding: detect a working default model even for explicit `zai-coding-*` endpoint choices, so Coding Plan setup can keep the selected endpoint while defaulting to `glm-5` when available or `glm-4.7` as fallback. (#45969) - Zalo/plugin runtime: export `resolveClientIp` from `openclaw/plugin-sdk/zalo` so installed builds no longer crash on startup when the webhook monitor loads from the packaged extension instead of the monorepo source tree. (#46549) Thanks @No898. +- Z.AI/onboarding: add `glm-5-turbo` to the default Z.AI provider catalog so onboarding-generated configs expose the new model alongside the existing GLM defaults. (#46670) Thanks @tomsun28. - Control UI/chat sessions: show human-readable labels in the grouped session dropdown again, keep unique scoped fallbacks when metadata is missing, and disambiguate duplicate labels only when needed. (#45130) thanks @luzhidong. - Configure/startup: move outbound send-deps resolution into a lightweight helper so `openclaw configure` no longer stalls after the banner while eagerly loading channel plugins. (#46301) thanks @scoootscooob. - Zalo Personal/group gating: stop reapplying `dmPolicy.allowFrom` as a sender gate for already-allowlisted groups when `groupAllowFrom` is unset, so any member of an allowed group can trigger replies while DMs stay restricted. (#40146) diff --git a/src/commands/onboard-auth.config-core.ts b/src/commands/onboard-auth.config-core.ts index 8c41bfb939c..619bbe0249b 100644 --- a/src/commands/onboard-auth.config-core.ts +++ b/src/commands/onboard-auth.config-core.ts @@ -126,6 +126,7 @@ export function applyZaiProviderConfig( const defaultModels = [ buildZaiModelDefinition({ id: "glm-5" }), + buildZaiModelDefinition({ id: "glm-5-turbo" }), buildZaiModelDefinition({ id: "glm-4.7" }), buildZaiModelDefinition({ id: "glm-4.7-flash" }), buildZaiModelDefinition({ id: "glm-4.7-flashx" }), diff --git a/src/commands/onboard-auth.models.ts b/src/commands/onboard-auth.models.ts index 2945e7b4461..24dda1f0539 100644 --- a/src/commands/onboard-auth.models.ts +++ b/src/commands/onboard-auth.models.ts @@ -97,6 +97,7 @@ type MinimaxCatalogId = keyof typeof MINIMAX_MODEL_CATALOG; const ZAI_MODEL_CATALOG = { "glm-5": { name: "GLM-5", reasoning: true }, + "glm-5-turbo": { name: "GLM-5 Turbo", reasoning: true }, "glm-4.7": { name: "GLM-4.7", reasoning: true }, "glm-4.7-flash": { name: "GLM-4.7 Flash", reasoning: true }, "glm-4.7-flashx": { name: "GLM-4.7 FlashX", reasoning: true }, diff --git a/src/commands/onboard-auth.test.ts b/src/commands/onboard-auth.test.ts index fa2c9f4f10d..8742c2fe7fa 100644 --- a/src/commands/onboard-auth.test.ts +++ b/src/commands/onboard-auth.test.ts @@ -473,6 +473,7 @@ describe("applyZaiConfig", () => { }); const ids = cfg.models?.providers?.zai?.models?.map((m) => m.id); expect(ids).toContain("glm-5"); + expect(ids).toContain("glm-5-turbo"); expect(ids).toContain("glm-4.7"); expect(ids).toContain("glm-4.7-flash"); expect(ids).toContain("glm-4.7-flashx");