Update provider documentation with: - Four provider variants table (zai, zai-coding, zhipu, zhipu-coding) - Region and plan type guidance - CLI setup commands for all variants - Environment variable fallback chains - Config snippets for each variant - Important notes on key interchangeability and billing Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
57 lines
1.5 KiB
Markdown
57 lines
1.5 KiB
Markdown
---
|
|
summary: "GLM model family overview + how to use it in Moltbot"
|
|
read_when:
|
|
- You want GLM models in Moltbot
|
|
- You need the model naming convention and setup
|
|
---
|
|
# GLM Models
|
|
|
|
GLM is a **model family** developed by Zhipu AI. GLM models are available through two platforms:
|
|
|
|
- **Z.AI** (api.z.ai) - International platform
|
|
- **Zhipu AI** (bigmodel.cn) - China mainland platform
|
|
|
|
## Provider Options
|
|
|
|
| Provider | Platform | Use Case |
|
|
|----------|----------|----------|
|
|
| `zai` | Z.AI (International) | Pay-as-you-go |
|
|
| `zai-coding` | Z.AI (International) | Coding Plan subscription |
|
|
| `zhipu` | Zhipu AI (China) | Pay-as-you-go |
|
|
| `zhipu-coding` | Zhipu AI (China) | Coding Plan subscription |
|
|
|
|
## CLI Setup
|
|
|
|
```bash
|
|
# International users
|
|
moltbot onboard --auth-choice zai-api-key
|
|
|
|
# China users
|
|
moltbot onboard --auth-choice zhipu-api-key
|
|
```
|
|
|
|
## Config Snippet
|
|
|
|
```json5
|
|
{
|
|
env: { ZAI_API_KEY: "sk-..." },
|
|
agents: { defaults: { model: { primary: "zai/glm-4.7" } } }
|
|
}
|
|
```
|
|
|
|
## Available Models
|
|
|
|
- `glm-4.7` - Latest flagship model (205K context)
|
|
- `glm-4.6` - Previous generation (205K context)
|
|
- `glm-4.6v` - Vision model (128K context)
|
|
- `glm-4.5` - Balanced performance (131K context)
|
|
- `glm-4.5-air` - Lighter variant (131K context)
|
|
- `glm-4.5-flash` - Faster variant (131K context)
|
|
|
|
Model availability may vary by region; check the platform docs for the latest.
|
|
|
|
## Notes
|
|
|
|
- Model IDs follow the pattern `{provider}/glm-{version}` (e.g., `zai/glm-4.7`, `zhipu/glm-4.7`)
|
|
- For detailed provider setup, see [/providers/zai](/providers/zai)
|