Skip to content

feat(sse): add GLM-5.3 models and effort tiers - #10896

Merged
diegosouzapw merged 3 commits into
release/v3.8.50from
fix/10358-glm-5.3-extract
Aug 20, 2026
Merged

diegosouzapw merged 3 commits into
release/v3.8.50from
fix/10358-glm-5.3-extract

Conversation

@diegosouzapw

Copy link
Copy Markdown
Collaborator

Clean extraction of #10358's value commit (by @phuongddx). The original branch carried an extra unrelated commit — .planning/codebase/ (7 files, 2189 lines) — self-generated local-tooling scaffolding docs, out of scope for this PR's title and outside the repo's file-placement conventions. Dropped from this extraction; everything else is the original commit, unmodified, plus a regeneration of docs/reference/PROVIDER_REFERENCE.md (auto-generated, base-drifted since 2026-08-14).

What

Adds GLM-5.3 support (released 2026-08-14, https://z.ai/blog/glm-5.3) across the z.ai first-party providers.

Upstream ships one model id glm-5.3 — effort is now a request parameter (reasoning_effort: low|high|max, default max) on the coding chat/completions endpoint, and thinking.type: "disabled" is no longer accepted. Per operator decision, OmniRoute keeps the 5.2 tier UX with glm-5.3-high / glm-5.3-low aliases (base id = upstream default max).

Changes

  • open-sse/config/glmProvider.ts — glm-5.3, glm-5.3-high, glm-5.3-low in GLM_SHARED_MODELS (→ glm / glm-cn / glmt)
  • open-sse/config/providers/registry/zai/index.ts — base glm-5.3 only (tiers are GlmExecutor aliases; zai sends ids verbatim)
  • open-sse/executors/glm.ts — parseGlm52Effort generalized to parseGlmEffortTier: 5.2 tiers keep the Anthropic-transport effort beta path (unchanged); 5.3 tiers stay on the OpenAI coding transport and inject reasoning_effort + thinking.type=enabled
  • src/shared/constants/modelSpecs.ts — specs for the 3 ids + AUTHORITATIVE_CONTEXT_WINDOW_MODEL_IDS
  • src/shared/constants/pricing/shared-tiers.ts — GLM_PRICING entries for the 3 ids
  • docs/reference/PROVIDER_REFERENCE.md — regenerated (npm run gen:provider-reference)

Spec caveats (unpublished upstream)

  • Context window: Z.ai documents a glm-5.3[1m] suffix for 1M but not the default; 1M mirrored from GLM-5.2 (same base model) per operator decision — correct when the official spec lands.
  • Pricing: not yet on https://docs.z.ai/guides/overview/pricing; mirrored from GLM-5.2 (5.1 and 5.2 share identical rates).

Validation

  • npm run typecheck:core — clean
  • node scripts/check/check-file-size.mjs / check-changelog-integrity.mjs — OK
  • npm run check:provider-consistency — OK (263 REGISTRY entries, 343 canonical providers, 0 exceptions)
  • tests/unit/glm-5.3-catalog-and-effort-tiers.test.ts + tests/unit/zai-catalog-glm52.test.ts — 18/18 passing

Co-authored-by: phuongddx 95doanphuong@gmail.com

phuongddx and others added 3 commits August 20, 2026 17:50
GLM-5.3 (released 2026-08-14) ships one upstream model id with effort as
a reasoning_effort request param (low|high|max, default max); thinking
can no longer be disabled. Adds glm-5.3/glm-5.3-high/glm-5.3-low to
GLM_SHARED_MODELS (glm/glm-cn/glmt) and glm-5.3 base to the zai catalog.

- GlmExecutor: parseGlm52Effort generalized to parseGlmEffortTier; 5.3
  tiers stay on the OpenAI coding transport and inject reasoning_effort
  + thinking.type=enabled; 5.2 tiers keep the Anthropic effort beta path
- modelSpecs + GLM_PRICING entries for the three ids
- default context window (1M) and pricing mirrored from GLM-5.2 (same
  base model) until Z.ai publishes official 5.3 specs

Extracted from #10358 (unrelated .planning/codebase/ scaffolding dump dropped).
Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
A second npm run gen:provider-reference in this worktree non-deterministically
dropped the cursor 'image' capability tag and devin-cli's '(Official)' suffix
(unrelated to GLM-5.3, cause not pinned down). Restored to the correct content.

Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
@diegosouzapw
diegosouzapw merged commit 7afafce into release/v3.8.50 Aug 20, 2026
6 of 10 checks passed
@diegosouzapw
diegosouzapw deleted the fix/10358-glm-5.3-extract branch August 21, 2026 15:32
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
Merged — clean extraction from cheaper-inference#10358's genuinely new content (see PR body for the rationale: an unrelated .planning/codebase/ scaffolding dump was dropped). typecheck/file-size/changelog/provider-consistency gates clean, 18/18 tests passing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants