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.5 KiB
Markdown
46 lines
1.5 KiB
Markdown
# 🐛 Solução de Problemas
|
||
|
||
> Voltar ao [README](../../README.pt-br.md)
|
||
|
||
## "model ... not found in model_list" ou OpenRouter "free is not a valid model ID"
|
||
|
||
**Sintoma:** Você vê um dos seguintes erros:
|
||
|
||
- `Error creating provider: model "openrouter/free" not found in model_list`
|
||
- OpenRouter retorna 400: `"free is not a valid model ID"`
|
||
|
||
**Causa:** O campo `model` na sua entrada `model_list` é o que é enviado para a API. Para o OpenRouter, você deve usar o ID de modelo **completo**, não uma abreviação.
|
||
|
||
- **Errado:** `"model": "free"` → OpenRouter recebe `free` e rejeita.
|
||
- **Correto:** `"model": "openrouter/free"` → OpenRouter recebe `openrouter/free` (roteamento automático do nível gratuito).
|
||
|
||
**Correção:** Em `~/.picoclaw/config.json` (ou seu caminho de configuração):
|
||
|
||
1. **agents.defaults.model** deve corresponder a um `model_name` em `model_list` (ex.: `"openrouter-free"`).
|
||
2. O **model** dessa entrada deve ser um ID de modelo OpenRouter válido, por exemplo:
|
||
- `"openrouter/free"` – nível gratuito automático
|
||
- `"google/gemini-2.0-flash-exp:free"`
|
||
- `"meta-llama/llama-3.1-8b-instruct:free"`
|
||
|
||
Exemplo:
|
||
|
||
```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"
|
||
}
|
||
]
|
||
}
|
||
```
|
||
|
||
Obtenha sua chave em [OpenRouter Keys](https://openrouter.ai/keys).
|