Skip to content

Add zai/glm-5.2 to the model registry#189

Merged
chloeilabs merged 2 commits into
mainfrom
feat/add-glm-5.2
Jun 17, 2026
Merged

Add zai/glm-5.2 to the model registry#189
chloeilabs merged 2 commits into
mainfrom
feat/add-glm-5.2

Conversation

@chloeilabs

Copy link
Copy Markdown
Owner

Summary

  • Adds ZAI_GLM_5_2: "zai/glm-5.2" to AvailableModels, SUPPORTED_MODELS, MODEL_SELECTOR_MODELS, and ModelInfos (display name: GLM 5.2)
  • Adds "zai" to PromptProvider + a zai overlay in PROVIDER_OVERLAYS (same GLM reasoning guidance pattern as Qwen/Kimi)
  • Adds if (model.startsWith("zai/")) return "zai" branch to resolvePromptProvider — without this, any request using a zai/* model would throw an unsupported-provider 500
  • Updates model-registry.test.mjs snapshot assertions to cover the new key, IDs, and display name

Test plan

  • pnpm lint — clean (0 warnings)
  • pnpm format:check — clean
  • pnpm typecheck — clean
  • pnpm test — 150/150 pass (including model-registry.test.mjs)

🤖 Generated with Claude Code

Registers GLM 5.2 (zai/glm-5.2) as a supported and selector model alongside
Qwen 3.7 Max and Kimi K2.6. Adds the zai provider overlay and resolver branch
in agent-prompt-steering so all zai/* models get prompt guidance without
throwing the unsupported-provider error.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chloei Ready Ready Preview, Comment Jun 17, 2026 3:56am

Moves ZAI_GLM_5_2 to first position in SUPPORTED_MODELS and
MODEL_SELECTOR_MODELS so resolveDefaultModelSelectorModel returns it
when no stored preference exists. Updates test assertions accordingly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@chloeilabs chloeilabs merged commit 6f6bf10 into main Jun 17, 2026
6 checks passed
@chloeilabs chloeilabs deleted the feat/add-glm-5.2 branch June 17, 2026 03:57
@chloeilabs chloeilabs mentioned this pull request Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant