mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
Complete rename of all OpenClaw/OPENCLAW/openclaw references to Hanzo Bot/BOT/bot naming convention: - Env vars: OPENCLAW_* → BOT_* (18 patterns) - Config: ~/.openclaw/ → ~/.bot/, openclaw.json → bot.json - Packages: @openclaw/* → @hanzo/bot-* - Domains: openclaw.ai → hanzo.bot - Mobile: OpenClawKit → BotKit, bundle IDs ai.openclaw → ai.hanzo.bot - mDNS: _openclaw-gw._tcp → _bot-gw._tcp - Docker: CMD hanzo-bot.mjs, BOT_PREFER_PNPM, BOT_DOCKER_APT_PACKAGES - CI: docker-release.yml adds :latest tag on main branch
1.1 KiB
1.1 KiB
read_when, summary, title, x-i18n
| read_when | summary | title | x-i18n | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
在 Hanzo Bot 中使用智谱 AI(GLM 模型) | Z.AI |
|
Z.AI
Z.AI 是 GLM 模型的 API 平台。它为 GLM 提供 REST API,并使用 API 密钥进行身份验证。请在 Z.AI 控制台中创建你的 API 密钥。Hanzo Bot 通过 zai 提供商配合 Z.AI API 密钥使用。
CLI 设置
hanzo-bot onboard --auth-choice zai-api-key
# 或非交互式
hanzo-bot onboard --zai-api-key "$ZAI_API_KEY"
配置片段
{
env: { ZAI_API_KEY: "sk-..." },
agents: { defaults: { model: { primary: "zai/glm-4.7" } } },
}
注意事项
- GLM 模型以
zai/<model>的形式提供(例如:zai/glm-4.7)。 - 参阅 /providers/glm 了解模型系列概览。
- Z.AI 使用 Bearer 认证方式配合你的 API 密钥。