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.6 KiB
Markdown
46 lines
1.6 KiB
Markdown
# 🐛 Khắc Phục Sự Cố
|
||
|
||
> Quay lại [README](../../README.vi.md)
|
||
|
||
## "model ... not found in model_list" hoặc OpenRouter "free is not a valid model ID"
|
||
|
||
**Triệu chứng:** Bạn thấy một trong các lỗi sau:
|
||
|
||
- `Error creating provider: model "openrouter/free" not found in model_list`
|
||
- OpenRouter trả về 400: `"free is not a valid model ID"`
|
||
|
||
**Nguyên nhân:** Trường `model` trong mục `model_list` của bạn là giá trị được gửi đến API. Đối với OpenRouter, bạn phải sử dụng ID mô hình **đầy đủ**, không phải dạng viết tắt.
|
||
|
||
- **Sai:** `"model": "free"` → OpenRouter nhận được `free` và từ chối.
|
||
- **Đúng:** `"model": "openrouter/free"` → OpenRouter nhận được `openrouter/free` (định tuyến tự động tầng miễn phí).
|
||
|
||
**Cách sửa:** Trong `~/.picoclaw/config.json` (hoặc đường dẫn cấu hình của bạn):
|
||
|
||
1. **agents.defaults.model** phải khớp với một `model_name` trong `model_list` (ví dụ: `"openrouter-free"`).
|
||
2. **model** của mục đó phải là ID mô hình OpenRouter hợp lệ, ví dụ:
|
||
- `"openrouter/free"` – tầng miễn phí tự động
|
||
- `"google/gemini-2.0-flash-exp:free"`
|
||
- `"meta-llama/llama-3.1-8b-instruct:free"`
|
||
|
||
Ví dụ:
|
||
|
||
```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"
|
||
}
|
||
]
|
||
}
|
||
```
|
||
|
||
Lấy khóa của bạn tại [OpenRouter Keys](https://openrouter.ai/keys).
|