feat: add z.ai GLM models to the catalog#23
Merged
Conversation
Add the z.ai (GLM) provider with both classic API-key access and the GLM Coding Plan subscription. Covers the current lineup: GLM-5.1, GLM-5, GLM-5-Turbo, the GLM-4.7 family, GLM-4.6, and the GLM-4.5 family. Adds the provider label, model display names, and logo.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Both are documented z.ai chat-completions parameters that were missing. stop is modeled as a single string (matching the catalog's Mistral convention), and tool_choice is an enum noting auto is the only value z.ai supports. Left off the GLM Coding Plan subscription files, which don't expose these.
# Conflicts: # src/data/display.ts
# Conflicts: # src/data/display.ts
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.
💭 Why
GLM wasn't in the catalog, so z.ai users (API key or the GLM Coding Plan subscription) had no parameter reference.
✨ What changed
📝 Notes
Params sourced from https://docs.z.ai/ (chat completions reference). temperature range is [0, 1], top_p [0.01, 1], and thinking mode defaults to enabled. Vision models (glm-4.6v and friends) are left out; they're a separate multimodal surface.