feat(pricing): add GLM-5.3-Flash pricing, model specs, and catalog registration - #11830
Merged
diegosouzapw merged 3 commits intoAug 30, 2026
Merged
diegosouzapw merged 3 commits into
diegosouzapw merged 3 commits into
Conversation
Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
diegosouzapw
merged commit Aug 30, 2026
e0029eb
into
diegosouzapw:release/v3.8.51
14 of 15 checks passed
diegosouzapw
pushed a commit
that referenced
this pull request
Aug 30, 2026
Adiciona suporte ao GLM-5.3-Flash Coding Plan (endpoint OpenAI-compatible, tiers de esforço low/high/max via reasoning_effort). Boa cobertura de testes. Validado no worktree combinado. Dois problemas resolvidos antes de mergear: 1. **Duplicata silenciosa de "glm-5.3-flash"** em `src/shared/constants/modelSpecs.ts` e `open-sse/config/glmProvider.ts` (#11830, já mergeado nesta sessão, e sua PR inserem a mesma entrada em pontos diferentes do arquivo — git não detecta como conflito textual). Removida a duplicata, preservando a ordem que o teste pré-existente `open-sse/mcp-server/__tests__/glmCodingProviderConfig.test.ts` espera (glm-5.3-flash primeiro no array `GLM_SHARED_MODELS`). 2. Conflito real em `zai/index.ts`, `default.ts`, `pricing/shared-tiers.ts` e no teste de catálogo — todos aditivos, resolvidos mantendo ambos os lados. 27/27 + 10/10 (vitest) testes focados verdes. Obrigado!
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
…gistration (diegosouzapw#11830) Adiciona GLM-5.3-Flash ao catálogo com pricing/specs e teste próprio. Validado no worktree combinado (typecheck limpo, teste focado verde). Obrigado!
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
Adiciona suporte ao GLM-5.3-Flash Coding Plan (endpoint OpenAI-compatible, tiers de esforço low/high/max via reasoning_effort). Boa cobertura de testes. Validado no worktree combinado. Dois problemas resolvidos antes de mergear: 1. **Duplicata silenciosa de "glm-5.3-flash"** em `src/shared/constants/modelSpecs.ts` e `open-sse/config/glmProvider.ts` (diegosouzapw#11830, já mergeado nesta sessão, e sua PR inserem a mesma entrada em pontos diferentes do arquivo — git não detecta como conflito textual). Removida a duplicata, preservando a ordem que o teste pré-existente `open-sse/mcp-server/__tests__/glmCodingProviderConfig.test.ts` espera (glm-5.3-flash primeiro no array `GLM_SHARED_MODELS`). 2. Conflito real em `zai/index.ts`, `default.ts`, `pricing/shared-tiers.ts` e no teste de catálogo — todos aditivos, resolvidos mantendo ambos os lados. 27/27 + 10/10 (vitest) testes focados verdes. Obrigado!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds official default pricing and model specifications for
glm-5.3-flash(released 2026-08-26 by Z.AI / models.dev).Changes
src/shared/constants/pricing/shared-tiers.ts: Addglm-5.3-flashdefault pricing ($0.075 / $0.25 / $0.015 cached per 1M tokens)open-sse/config/glmProvider.ts: Registerglm-5.3-flashinGLM_SHARED_MODELSwith 1M context, 128K max output, thinking and vision capabilitiesopen-sse/config/providers/registry/zai/index.ts: Addglm-5.3-flashtozaiprovider registry modelssrc/shared/constants/modelSpecs.ts: Addglm-5.3-flashtoAUTHORITATIVE_CONTEXT_WINDOW_MODEL_IDSandMODEL_SPECSsrc/shared/constants/visionModels.ts: Addglm-5.3-flashto vision model listtests/unit/glm-5.3-catalog-and-effort-tiers.test.ts: Unit test assertions for catalog exposure, specs, vision, and pricingValidation
tests/unit/glm-5.3-catalog-and-effort-tiers.test.ts(19/19 passing)npm run typecheck:core(clean)