Skip to content

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

Closed
phuongddx wants to merge 4 commits into
cheaper-inference:release/v3.8.50from
phuongddx:feat/glm-5.3
Closed

phuongddx wants to merge 4 commits into
cheaper-inference:release/v3.8.50from
phuongddx:feat/glm-5.3

Conversation

@phuongddx

Copy link
Copy Markdown
Contributor

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).

Tests

  • New: tests/unit/glm-5.3-catalog-and-effort-tiers.test.ts (14 tests) — catalog presence on glm/glm-cn/glmt/zai, spec + pricing entries, executor tier resolution (reasoning_effort high/low + thinking enabled), base-id passthrough, 5.2 Anthropic-tier regression guard. Written failing-first, then implemented.
  • Ran green: the 14 new + 228 tests across glm/zai/modelSpecs/pricing suites (node --import tsx/esm --test), npm run lint (0 errors), npm run typecheck:core, npm run check:provider-consistency.

⚠️ base-red inherited: #9985

Sources

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
GLM-5.3's reasoning_effort accepts low|high|max but only -high/-low had
aliases; base glm-5.3 relied on the upstream default staying max. Add
glm-5.3-max so the max tier is pinned explicitly (survives an upstream
default change) and mirrors the glm-5.2-max UX.
@diegosouzapw

Copy link
Copy Markdown
Collaborator

Deferido para revalidação do head atual. A rodada anterior registrou um hold de ownership, mas a inspeção atual não confirmou esse worktree; por favor, reconfirme o head e os checks antes da decisão final.

@diegosouzapw diegosouzapw added deferred-v3.8.50 Adiada para o ciclo v3.8.50 (validacao VPS, refactor, ou escopo grande) merge-train-deferred PR ejetada do merge-train — triagem separada labels Aug 17, 2026
thinh0704hcm added a commit to thinh0704hcm/OmniRoute that referenced this pull request Aug 17, 2026
glm-5.3 adds 4 models to provider inventory; cloudflare-playground joins
the family combo set. Tiered rotation timeout raised to 15s under full-suite
contention (was 5s, flaky since W3 catalog expansion).

Inspired-by: cheaper-inference#10358, cheaper-inference#10442
@diegosouzapw diegosouzapw removed merge-train-deferred PR ejetada do merge-train — triagem separada deferred-v3.8.50 Adiada para o ciclo v3.8.50 (validacao VPS, refactor, ou escopo grande) labels Aug 17, 2026
diegosouzapw added a commit that referenced this pull request Aug 20, 2026
Merged — clean extraction from #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.
@diegosouzapw

Copy link
Copy Markdown
Collaborator

Thanks for this — GLM-5.3 support is solid and well-tested. The branch carried one unrelated commit — .planning/codebase/ (7 files, 2189 lines of self-generated local-tooling scaffolding docs) — outside this PR's stated scope and the repo's file-placement conventions, so it couldn't be merged as-is.

Extracted the real feature commit unmodified into a clean PR: #10896 (merged, with Co-authored-by: phuongddx <95doanphuong@gmail.com>).

Closing this one as superseded by #10896 — full credit is there, nothing of yours is lost.

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