Repository navigation
Offer Z.ai (GLM Coding Plan) as a built-in provider - #45
Merged
Merged
Conversation
The preset goes through Z.ai's Anthropic-compatible endpoint, so the existing Anthropic adapter serves it unchanged: model listing, streaming, thinking, tool calls, prompt caching and web search all work there. Z.ai's model list carries no input limits or capabilities, so listed GLM models have no context window unless one is configured. GLM also ignores `thinking: disabled` and `output_config.effort`; the development guide notes both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Linyxus
force-pushed
the
atc-more-providers
branch
from
December 5, 2026 13:06
65c9b3d to
a4d7c11
Compare
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 a
zaipreset, "Z.ai (GLM Coding Plan)", that goes through Z.ai's Anthropic-compatible endpoint (https://api.z.ai/api/anthropic, key${ZAI_API_KEY}). The existing Anthropic adapter serves it without any code changes.providers.json: the new preset, with a link to Z.ai's API key pagekeys-template.properties:ZAI_API_KEY=FirstRunSuite), and parsing Z.ai's real/v1/modelsresponse, which has no capabilities and uses camelCase paging fields (ProviderRequestSuite)doc/development.md: the preset and its quirksEndpoint behaviour (probed with a live key)
cache_control,count_tokens, and both web search tool versionscontextWindowis configured. A provider-level default is left for a follow-up.thinking: {"type": "disabled"}, so side calls such as input prediction still thinkoutput_config.effort, so/efforthas no effectTesting
./mill app.test: all suites pass./mill __.checkFormat: passes/providers,/models(13 GLM models), a file-reading turn with tool calls onglm-5.4, and a web search turn withwebSearch: true🤖 Generated with Claude Code