Files
bot/docs/zh-CN/providers/mistral.md
zooqueen 071e3f1082 rebrand: openclaw -> hanzo bot across entire codebase
Automated rebrand of all openclaw references to hanzo bot:
- Package: openclaw -> @hanzo/bot
- Binary: openclaw -> hanzo-bot
- Config: ~/.openclaw -> ~/.hanzo/bot
- Docker: ghcr.io/hanzoai/bot
- Env vars: OPENCLAW_* -> BOT_*
- Bundle IDs: ai.hanzo.bot.*
- Product name: Hanzo Bot
2026-03-19 13:52:32 -07:00

1.6 KiB

read_when, summary, title, x-i18n
read_when summary title x-i18n
你想在 Hanzo Bot 中使用 Mistral 模型
你需要 Mistral API 密钥新手引导和模型引用
在 Hanzo Bot 中使用 Mistral 模型和 Voxtral 转录 Mistral
generated_at model provider source_hash source_path workflow
2026-03-16T06:25:57Z gpt-5.4 openai 4f3efe060cbaeb14e20439ade040e57d27e7d98fb9dd06e657f6a69ae808f24f providers/mistral.md 15

Mistral

Hanzo Bot 支持 Mistral,用于文本/图像模型路由(mistral/...)以及 通过媒体理解中的 Voxtral 进行音频转录。 Mistral 还可用于记忆嵌入(memorySearch.provider = "mistral")。

CLI 设置

openclaw onboard --auth-choice mistral-api-key
# or non-interactive
openclaw onboard --mistral-api-key "$MISTRAL_API_KEY"

配置片段(LLM 提供商)

{
  env: { MISTRAL_API_KEY: "sk-..." },
  agents: { defaults: { model: { primary: "mistral/mistral-large-latest" } } },
}

配置片段(使用 Voxtral 进行音频转录)

{
  tools: {
    media: {
      audio: {
        enabled: true,
        models: [{ provider: "mistral", model: "voxtral-mini-latest" }],
      },
    },
  },
}

说明

  • Mistral 身份验证使用 MISTRAL_API_KEY。
  • 提供商基础 URL 默认为 https://api.mistral.ai/v1。
  • 新手引导默认模型为 mistral/mistral-large-latest。
  • Mistral 的媒体理解默认音频模型为 voxtral-mini-latest。
  • 媒体转录路径使用 /v1/audio/transcriptions。
  • 记忆嵌入路径使用 /v1/embeddings(默认模型:mistral-embed)。