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
2.0 KiB
2.0 KiB
read_when, summary, title, x-i18n
| read_when | summary | title | x-i18n | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
在 Hanzo Bot 中使用 Xiaomi MiMo (mimo-v2-flash) | Xiaomi MiMo |
|
Xiaomi MiMo
Xiaomi MiMo 是 MiMo 模型的 API 平台。它提供与 OpenAI 和 Anthropic 格式兼容的 REST API,并使用 API 密钥进行身份验证。请在 Xiaomi MiMo 控制台 中创建你的 API 密钥。Hanzo Bot 使用 xiaomi 提供商配合 Xiaomi MiMo API 密钥。
模型概览
- mimo-v2-flash:262144 token 上下文窗口,兼容 Anthropic Messages API。
- 基础 URL:
https://api.xiaomimimo.com/anthropic - 授权方式:
Bearer $XIAOMI_API_KEY
CLI 设置
hanzo-bot onboard --auth-choice xiaomi-api-key
# 或非交互式
hanzo-bot onboard --auth-choice xiaomi-api-key --xiaomi-api-key "$XIAOMI_API_KEY"
配置片段
{
env: { XIAOMI_API_KEY: "your-key" },
agents: { defaults: { model: { primary: "xiaomi/mimo-v2-flash" } } },
models: {
mode: "merge",
providers: {
xiaomi: {
baseUrl: "https://api.xiaomimimo.com/anthropic",
api: "anthropic-messages",
apiKey: "XIAOMI_API_KEY",
models: [
{
id: "mimo-v2-flash",
name: "Xiaomi MiMo V2 Flash",
reasoning: false,
input: ["text"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 262144,
maxTokens: 8192,
},
],
},
},
},
}
备注
- 模型引用:
xiaomi/mimo-v2-flash。 - 当设置了
XIAOMI_API_KEY(或存在身份验证配置文件)时,该提供商会自动注入。 - 有关提供商规则,请参阅 /concepts/model-providers。