Skip to main content
View source

GLM (Z.ai)

View as Markdown

Connects RocketRide pipelines to Zhipu AI's GLM family of open-weight hybrid-reasoning models, served through the OpenAI-compatible Z.ai cloud API (z.ai) or self-hosted with vLLM or SGLang.

  • Lane: questions → answers
  • Endpoint (cloud, international): https://api.z.ai/api/paas/v4
  • Endpoint (cloud, mainland China): https://open.bigmodel.cn/api/paas/v4

Models

The GLM-4.5 through GLM-5 generations are hybrid-reasoning MoE models with thinking and non-thinking modes and strong agentic/coding performance. The profile set matches the live Z.ai /models catalog (verified 2026-08).

ProfileModel IDContextNotes
GLM-5.2 (default)glm-5.21MFrontier long-context reasoning and coding
GLM-5.1glm-5.1200KPrevious flagship
GLM-5glm-5200KFirst GLM-5 generation
GLM-5 Turboglm-5-turbo200KFast cost-effective tier
GLM-4.7glm-4.7200KEnhanced-reasoning 4.x flagship
GLM-4.6glm-4.6200KOpen-weight 4.x flagship
GLM-4.5glm-4.5128KOpen-weight
GLM-4.5 Airglm-4.5-air128KOpen-weight, efficient cost/quality balance
Custom Model(user-defined)(user-defined)Any model on an OpenAI-compatible endpoint

The vision variants (GLM-4V / GLM-4.5V), embedding, CogView (image), CogVideoX (video), rerank, and audio lines are out of scope for this chat node.

Reasoning output

GLM-4.5+ models are reasoning models. The Z.ai cloud returns reasoning in a separate reasoning_content field, and for endpoints that inline <think>...</think> blocks in content the engine's shared LangChain adapter strips them and routes the reasoning to the thinking lane — the node needs no stripping of its own. Budget generous output tokens for reasoning-heavy prompts.

Self-hosting

GLM weights are openly published on Hugging Face under MIT-style licenses (zai-org/GLM-5.2, zai-org/GLM-4.5-Air, ...). To use a self-hosted vLLM or SGLang deployment, select the Custom Model profile and point its server base URL at your OpenAI-compatible endpoint; the API key may be left empty (the node passes a dummy token — local servers accept any).

Authentication

Cloud profiles require a Z.ai / Zhipu AI API key in apikey. The key requirement is enforced by base-URL match: if serverbase contains api.z.ai or bigmodel.cn and no key is set, the node raises GLM API key is required for cloud profiles. at startup. Key format is not validated beyond presence.

Model sync

Profiles are maintained by the sync_models tooling (llm_glm provider, ROCKETRIDE_GLM_KEY). The include filter keeps only the glm-* text chat models; vision (4V/4.5V), embedding, rerank, audio, and reward variants are excluded (they belong in dedicated nodes).


Schema

FieldTypeDescriptionDefault
glm.profilestringModel
Zhipu AI GLM LLM model
"glm-5-2"
glm.serverbasestringServer base URL
OpenAI-compatible base URL for the GLM endpoint (e.g. https://api.z.ai/api/paas/v4 for the Z.ai cloud API, http://localhost:8000/v1 for a self-hosted vLLM / SGLang server).
"https://api.z.ai/api/paas/v4"
modelstringModel
Zhipu AI GLM model
modelTotalTokensnumberTokens
Total Tokens

Dependencies

  • openai
  • langchain-openai
  • langchain-core
  • langchain