mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-08 07:41:08 +00:00
1.3 KiB
1.3 KiB
read_when, summary, title, x-i18n
| read_when | summary | title | x-i18n | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
GLM 模型家族概览 + 如何在 OpenClaw 中使用 | GLM Models |
|
GLM 模型
GLM 是一个模型家族(不是公司),可通过 Z.AI 平台使用。在 OpenClaw 中,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。