feat(model_prices): add zai/glm-5.2 vendor entry - #38866
Conversation
Adds the official Z.AI vendor entry for GLM-5.2 to model_prices_and_context_window.json and the backup copy. GLM-5.2 was previously covered only through third-party deployments (dashscope, together_ai, deepinfra, cloudflare, ...); the two-segment zai/ vendor entry is missing. Values per official docs: - https://docs.z.ai/guides/llm/glm-5.2 — 1M context, 128K max output, text-only input/output, thinking / function calling / context caching / structured output / MCP - https://docs.z.ai/guides/overview/pricing — $1.4/M input, $0.26/M cached input (storage limited-time free), $4.4/M output (same row group as GLM-5.3/GLM-5.1) Entry mirrors sibling zai/glm-5.3 field-for-field.
Greptile SummaryAdds direct Z.AI metadata for
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Adds the direct zai/glm-5.2 pricing, context-limit, provider, and capability metadata. |
| litellm/model_prices_and_context_window_backup.json | Mirrors the new zai/glm-5.2 entry from the primary model registry. |
Reviews (2): Last reviewed commit: "feat(model_prices): add zai/glm-5.2 vend..." | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Note on the The failing test ( The entry is byte-identical on this PR's branch — the diff only adds the Everything that validates the registry change itself is green on this PR: |
|
Superseded by the rolling registry PR #38990, which absorbs this change (values re-verified against the official provider docs). Closing per the one-rolling-registry-PR policy. |
Summary
Adds the official Z.AI vendor entry
zai/glm-5.2tomodel_prices_and_context_window.jsonandlitellm/model_prices_and_context_window_backup.json.The registry currently covers GLM-5.2 only through third-party deployments (
dashscope/glm-5.2,together_ai/zai-org/GLM-5.2,deepinfra/zai-org/glm-5.2,cloudflare/@cf/zai-org/glm-5.2,novita/zai-org/glm-5.2, ...). The two-segmentzai/vendor entry is missing, sozai/glm-5.2resolves without pricing/context metadata.Values (per official docs)
input_cost_per_token1.4e-06($1.4/M)cache_read_input_token_cost2.6e-07($0.26/M)cache_creation_input_token_cost0output_cost_per_token4.4e-06($4.4/M)max_input_tokens1000000max_output_tokens128000trueSources:
The entry mirrors sibling
zai/glm-5.3field-for-field: on the official pricing page GLM-5.2 and GLM-5.3 sit in the same row group ($1.4 / $0.26 / $4.4), and the model pages document the same 1M / 128K limits and the same capability set (text-only input/output, so nosupports_vision, consistent with the sibling).Tests
git diffshows only the two +15-line additionszai/glm-5.2key; no other registry entries touched