Files
bot/docs/zh-CN/providers/glm.md
zooqueen 071e3f1082 rebrand: openclaw -> hanzo bot across entire codebase
Automated rebrand of all openclaw references to hanzo bot:
- Package: openclaw -> @hanzo/bot
- Binary: openclaw -> hanzo-bot
- Config: ~/.openclaw -> ~/.hanzo/bot
- Docker: ghcr.io/hanzoai/bot
- Env vars: OPENCLAW_* -> BOT_*
- Bundle IDs: ai.hanzo.bot.*
- Product name: Hanzo Bot
2026-03-19 13:52:32 -07:00

1.3 KiB

read_when, summary, title, x-i18n
read_when summary title x-i18n
你想在 Hanzo Bot 中使用 GLM 模型
你需要了解模型命名约定和设置方法
GLM 模型家族概览 + 如何在 Hanzo Bot 中使用 GLM Models
generated_at model provider source_hash source_path workflow
2026-03-16T06:25:10Z gpt-5.4 openai 061254ebeedec7285d9c0c6e88145f89184ad4ab8d8d6132f1d692c7d3ca03a2 providers/glm.md 15

GLM 模型

GLM 是一个模型家族(不是公司),可通过 Z.AI 平台使用。在 Hanzo Bot 中,GLM 模型通过 zai 提供商访问,模型 ID 形式如 zai/glm-5。

CLI 设置

# Coding Plan Global,推荐给 Coding Plan 用户
openclaw onboard --auth-choice zai-coding-global

# Coding Plan CN(中国区域),推荐给 Coding Plan 用户
openclaw onboard --auth-choice zai-coding-cn

# 通用 API
openclaw onboard --auth-choice zai-global

# 通用 API CN(中国区域)
openclaw onboard --auth-choice zai-cn

配置片段

{
  env: { ZAI_API_KEY: "sk-..." },
  agents: { defaults: { model: { primary: "zai/glm-5" } } },
}

说明

  • GLM 版本和可用性可能会变化;请查看 Z.AI 的文档以获取最新信息。
  • 示例模型 ID 包括 glm-5、glm-4.7 和 glm-4.6。
  • 关于提供商详情,请参阅 /providers/zai。