跳转到主要内容

GLM 模型

GLM 是一个通过 Z.AI 平台提供的 模型系列(而非公司)。在 OpenClaw 中,GLM 模型通过 zai 提供商访问,模型 ID 例如 zai/glm-5

CLI 设置

# Coding Plan Global, recommended for Coding Plan users
openclaw onboard --auth-choice zai-coding-global

# Coding Plan CN (China region), recommended for Coding Plan users
openclaw onboard --auth-choice zai-coding-cn

# General API
openclaw onboard --auth-choice zai-global

# General API CN (China region)
openclaw onboard --auth-choice zai-cn

配置片段

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

注意事项

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

本页面源自 openclaw/openclaw,由 BeaversLab 翻译,遵循 MIT 协议 发布。
Last modified on March 27, 2026