docs: add Z.AI GLM coding plan setup guide#749
Conversation
- Add comprehensive documentation for Z.AI GLM models
- Include curl examples for testing Z.AI API
- Document available models and troubleshooting
- Update .env.example with Z.AI configuration
Z.AI provides GLM models (glm-4.5, glm-4.6, glm-4.7, glm-5) through
the OpenAI-compatible endpoint at api.z.ai/api/coding/paas/v4.
Existing tests verify:
- zai_base_url() returns correct URLs for global/CN variants
- create_provider('zai', key) successfully creates provider
- Regional alias predicates cover all variants
PR intake checks found warnings (non-blocking)Fast safe checks found advisory issues. CI lint/test/build gates still enforce merge quality.
Action items:
Run logs: https://github.com/zeroclaw-labs/zeroclaw/actions/runs/22130130157 Detected blocking line issues (sample):
Detected advisory line issues (sample):
|
The first-interaction action requires snake_case input names. This fix is needed for CI to pass on this PR.
- remove trailing whitespace in .env.example Z.AI block - align documented model defaults/options with current onboard/provider behavior - keep this PR docs-focused by reverting incidental workflow edits
|
Thanks @adisusilayasa, and congratulations on the contribution — this is a helpful docs addition.\n\nI applied a maintainer polish pass to keep the PR accurate and focused:\n- aligned the Z.AI setup guide with current runtime/onboard defaults and provider aliases\n- removed the trailing whitespace advisory in \n- reverted incidental workflow edits so this remains a docs-focused PR\n\n@willsarg heads-up: I handled the docs + CI-scope cleanup by keeping this PR docs-only and leaving CI workflow work in dedicated CI tracks (for example #732).\n\nAll relevant checks are passing on the updated head. |
|
Thanks again @adisusilayasa — and congratulations on shipping a clear Z.AI docs improvement. Quick correction to my previous note: the whitespace cleanup was in Final maintainer updates applied on this PR:
@willsarg this one is now intentionally docs-only; CI workflow changes remain in dedicated CI PRs (for example #732). |
Summary
docs/zai-glm-setup.mdguide..env.examplewith Z.AI setup hints.glm-5) and current Z.AI alias/endpoint behavior (zai,zai-cn).Linked Issue
Validation Evidence (required)
Commands and result summary:
docs/zai-glm-setup.md).Security Impact (required)
No)No)No)No)Yes, describe risk and mitigation: N/APrivacy and Data Hygiene (required)
pass)Rollback Plan (required)
git revert <merge_commit_sha>after merge.