fix(catalog): add GLM-5.2 to ZAI provider - #580
Open
LineZore wants to merge 1 commit into
Open
Conversation
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.
What
GLM-5.2 was missing from the ZAI provider model list, so users authenticated with a ZAI API key could not see or select it.
Closes #542.
Root cause
The ZAI provider in
src/tau_coding/data/catalog.tomlhad a hand-maintainedmodelslist that stopped atglm-5.1. GLM-5.2 (Z.ai coding plan) was never added, so it did not appear after/login.Note: the catalog is static — there is no remote
/modelsdiscovery — so new models must be added here explicitly.Verified model specs (from Z.ai docs)
Cross-checked against Z.ai documentation, not copied from sibling entries:
glm-5.2— confirmed to exist1,000,000— Z.ai advertises GLM-5.2 as "supporting up to 1M context". This is a GLM-5.2-specific claim; the other GLM-5 models (e.g.glm-5.1) are not advertised as 1M, which is why they remain at200000.131072(128K) — matches GLM-5.1true(supportsreasoning_effort)textonly (the*-turbovision variant is separate)supportsDeveloperRole = false,thinkingFormat = "zai",zaiToolStream = true— same asglm-5.1/glm-5-turbo(same protocol)Changes
Three additions to the
zaiprovider block insrc/tau_coding/data/catalog.toml:modelslist: add"glm-5.2"(betweenglm-5.1andglm-5v-turbo)context_windows: add"glm-5.2" = 1000000[providers.model_metadata."glm-5.2"]blockdefault_modelis intentionally left asglm-5.1— this PR only makes GLM-5.2 selectable; changing the default is a separate behavioral decision for maintainers.Verification
uv run pytest tests/test_provider_catalog.py tests/test_provider_config.py→ 107 passedglm-5.2appears inzai.models,context_windows, andmodel_metadatawith consistent values;default_modelvalidation passesuv run ruff check→ clean