codecamp

GLM 模型系列概述 + 如何在 OpenClaw 中使用

GLM 模型

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

CLI 设置

openclaw onboard --auth-choice zai-api-key

配置片段

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

注意事项

  • GLM 版本和可用性可能会变化;请查阅 Z.AI 的文档获取最新信息。
  • 示例模型 ID 包括 glm-4.7glm-4.6
  • 有关提供商的详细信息,请参阅 /providers/zai
使用设备流从 OpenClaw 登录 GitHub Copilot
OpenClaw Google(Gemini)提供商配置指南
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

OpenClaw 消息渠道

OpenClaw 工具

OpenClaw 模型

OpenClaw 平台

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }