Skip to content

Commit c57b750

Browse files
tomsun28Takhoffman
andauthored
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 <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
1 parent 4c6a7f8 commit c57b750

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Docs: https://docs.openclaw.ai
1414

1515
- 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)
1616
- 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.
17+
- 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.
1718
- 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.
1819
- 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.
1920
- 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)

src/commands/onboard-auth.config-core.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export function applyZaiProviderConfig(
126126

127127
const defaultModels = [
128128
buildZaiModelDefinition({ id: "glm-5" }),
129+
buildZaiModelDefinition({ id: "glm-5-turbo" }),
129130
buildZaiModelDefinition({ id: "glm-4.7" }),
130131
buildZaiModelDefinition({ id: "glm-4.7-flash" }),
131132
buildZaiModelDefinition({ id: "glm-4.7-flashx" }),

src/commands/onboard-auth.models.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ type MinimaxCatalogId = keyof typeof MINIMAX_MODEL_CATALOG;
9797

9898
const ZAI_MODEL_CATALOG = {
9999
"glm-5": { name: "GLM-5", reasoning: true },
100+
"glm-5-turbo": { name: "GLM-5 Turbo", reasoning: true },
100101
"glm-4.7": { name: "GLM-4.7", reasoning: true },
101102
"glm-4.7-flash": { name: "GLM-4.7 Flash", reasoning: true },
102103
"glm-4.7-flashx": { name: "GLM-4.7 FlashX", reasoning: true },

src/commands/onboard-auth.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ describe("applyZaiConfig", () => {
473473
});
474474
const ids = cfg.models?.providers?.zai?.models?.map((m) => m.id);
475475
expect(ids).toContain("glm-5");
476+
expect(ids).toContain("glm-5-turbo");
476477
expect(ids).toContain("glm-4.7");
477478
expect(ids).toContain("glm-4.7-flash");
478479
expect(ids).toContain("glm-4.7-flashx");

0 commit comments

Comments
 (0)