Files
picoclaw/docs/zh/troubleshooting.md
T
BeaconCat 363861c917 docs: restructure READMEs and add i18n documentation (#1729)
Restructure all 6 README files (en, zh, ja, fr, pt-br, vi) from
~1200-1580 lines down to ~250 lines each. Long sections (Chat Apps,
Providers, Configuration, Docker, Spawn Tasks, Troubleshooting, Tools)
are extracted into dedicated docs under docs/{lang}/ subdirectories.

Changes:
- Split README content into 7 sub-documents per language (42 new files)
- Update News section with v0.2.3/v0.2.1/v0.2.0/20K milestones
- Add 3 new Features (MCP Support, Vision Pipeline, Smart Routing)
- Complete CLI reference (14 commands, was 7)
- Fix Go badge 1.21+ -> 1.25+ (matches go.mod)
- Add LoongArch to architecture badge
- Fix Install section: hardcoded v0.1.1 -> latest/download URL
- Add Termux GitHub links
- Fix currency symbol placement ($599 not 599$)
- Add missing channels (Feishu, Slack, IRC, OneBot, MaixCam, Pico)
- Add missing providers (Kimi, Minimax, Avian, Mistral, Longcat, ModelScope)
- Add missing security docs (allow_read/write_paths, allow_remote, symlink)
- Remove incorrect azure from Providers table (azure uses model_list only)
- Cross-verified all claims against source code

Co-authored-by: BeaconCat <BeaconCat@users.noreply.github.com>
2026-03-18 15:26:39 +08:00

1.4 KiB
Raw Blame History

🐛 疑难解答

返回 README

"model ... not found in model_list" 或 OpenRouter "free is not a valid model ID"

症状: 你看到以下任一错误:

  • Error creating provider: model "openrouter/free" not found in model_list
  • OpenRouter 返回 400"free is not a valid model ID"

原因: model_list 条目中的 model 字段是发送给 API 的内容。对于 OpenRouter,你必须使用完整的模型 ID,而不是简写。

  • 错误: "model": "free" → OpenRouter 收到 free 并拒绝。
  • 正确: "model": "openrouter/free" → OpenRouter 收到 openrouter/free(自动免费层路由)。

修复方法:~/.picoclaw/config.json(或你的配置路径)中:

  1. agents.defaults.model 必须匹配 model_list 中的某个 model_name(例如 "openrouter-free")。
  2. 该条目的 model 必须是有效的 OpenRouter 模型 ID,例如:
    • "openrouter/free" 自动免费层
    • "google/gemini-2.0-flash-exp:free"
    • "meta-llama/llama-3.1-8b-instruct:free"

示例片段:

{
  "agents": {
    "defaults": {
      "model": "openrouter-free"
    }
  },
  "model_list": [
    {
      "model_name": "openrouter-free",
      "model": "openrouter/free",
      "api_key": "sk-or-v1-YOUR_OPENROUTER_KEY",
      "api_base": "https://openrouter.ai/api/v1"
    }
  ]
}

OpenRouter Keys 获取你的密钥。