mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
363861c917
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>
46 lines
1.7 KiB
Markdown
46 lines
1.7 KiB
Markdown
# 🐛 トラブルシューティング
|
||
|
||
> [README](../../README.ja.md) に戻る
|
||
|
||
## "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"`
|
||
|
||
設定例:
|
||
|
||
```json
|
||
{
|
||
"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](https://openrouter.ai/keys) で取得できます。
|