zai provider का उपयोग करता है।
| गुण | मान |
|---|---|
| Provider | zai |
| Package | @openclaw/zai-provider |
| Auth | ZAI_API_KEY (लेगेसी उपनाम: Z_AI_API_KEY) |
| API | Z.AI Chat Completions (Bearer प्रमाणीकरण) |
GLM मॉडल
GLM एक मॉडल परिवार है, अलग provider नहीं। OpenClaw में, GLM मॉडलzai/glm-5.2 जैसे refs का उपयोग करते हैं: provider zai, model id glm-5.2.
शुरू करना
पहले provider plugin इंस्टॉल करें:- Auto-detect endpoint
- Explicit regional endpoint
कॉन्फ़िगरेशन उदाहरण
बिल्ट-इन कैटलॉग
zai provider plugin अपना कैटलॉग plugin manifest में भेजता है, इसलिए read-only
listing provider runtime लोड किए बिना ज्ञात GLM पंक्तियां दिखा सकती है:
| Model ref | टिप्पणियां |
|---|---|
zai/glm-5.2 | Coding Plan डिफ़ॉल्ट; 1M context |
zai/glm-5.1 | General API डिफ़ॉल्ट |
zai/glm-5 | |
zai/glm-5-turbo | |
zai/glm-5v-turbo | |
zai/glm-4.7 | |
zai/glm-4.7-flash | |
zai/glm-4.7-flashx | |
zai/glm-4.6 | |
zai/glm-4.6v | |
zai/glm-4.5 | |
zai/glm-4.5-air | |
zai/glm-4.5-flash | |
zai/glm-4.5v |
Coding Plan setup डिफ़ॉल्ट रूप से
zai/glm-5.2 का उपयोग करता है; general API setup
zai/glm-5.1 रखता है। जब चुना गया plan GLM-5.2 उपलब्ध नहीं कराता, तो endpoint
auto-detection glm-5.1 या glm-4.7 पर वापस चला जाता है। GLM versions और उपलब्धता
बदल सकती है; अपने installed version को ज्ञात कैटलॉग देखने के लिए
openclaw models list --all --provider zai चलाएं।उन्नत कॉन्फ़िगरेशन
Forward-resolving unknown GLM-5 models
Forward-resolving unknown GLM-5 models
अज्ञात
glm-5* ids तब भी provider path पर forward-resolve होते हैं, जब id
मौजूदा GLM-5 family shape से मेल खाता है, तो glm-4.7 template से
provider-owned metadata synthesize करके।Tool-call streaming
Tool-call streaming
Z.AI tool-call streaming के लिए
tool_stream डिफ़ॉल्ट रूप से सक्षम है। इसे अक्षम करने के लिए:Thinking and preserved thinking
Thinking and preserved thinking
Z.AI thinking OpenClaw के सक्षम होने और thinking on होने पर, OpenClaw
/think controls का पालन करता है। thinking बंद होने पर,
OpenClaw thinking: { type: "disabled" } भेजता है, ताकि ऐसे responses से बचा जा सके जो
visible text से पहले reasoning_content पर output budget खर्च करते हैं।Preserved thinking opt-in है क्योंकि Z.AI को पूरा historical
reasoning_content replay करना होता है, जिससे prompt tokens बढ़ते हैं। इसे
प्रति model सक्षम करें:thinking: { type: "enabled", clear_thinking: false } भेजता है और उसी
OpenAI-compatible transcript के लिए पहले का reasoning_content replay करता है।उन्नत उपयोगकर्ता अब भी exact provider payload को
params.extra_body.thinking से override कर सकते हैं।Image understanding
Image understanding
Z.AI plugin image understanding register करता है।
Image understanding configured Z.AI auth से अपने-आप resolve होता है — किसी
अतिरिक्त config की आवश्यकता नहीं है।
| गुण | मान |
|---|---|
| Model | glm-4.6v |
Auth details
Auth details
- Z.AI आपकी API key के साथ Bearer auth का उपयोग करता है।
zai-api-keyonboarding choice आपकी key के साथ समर्थित endpoints probe करके मेल खाने वाला Z.AI endpoint अपने-आप पहचानता है।- जब आप किसी विशिष्ट API surface को बाध्य करना चाहते हों, तो स्पष्ट क्षेत्रीय विकल्पों (
zai-coding-global,zai-coding-cn,zai-global,zai-cn) का उपयोग करें। - लेगेसी env var
Z_AI_API_KEYअब भी स्वीकार किया जाता है; अगरZAI_API_KEYunset है, तो OpenClaw startup पर इसेZAI_API_KEYमें copy करता है।
संबंधित
Model selection
providers, model refs, और failover behavior चुनना।
Configuration reference
पूरा OpenClaw config schema, जिसमें provider और model settings शामिल हैं।