mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
d7c0205052
* Add comprehensive documentation for PicoClaw configuration, chat applications, debugging, Docker setup, async tasks, and troubleshooting on MY language: - Introduced a new document on MY language for chat applications configuration detailing setup for Telegram, Discord, WhatsApp, and others. - Created a configuration guide on MY language outlining environment variables, workspace structure, and security settings. - Added a debugging section to assist users in troubleshooting and understanding agent interactions on MY language. - Provided a Docker guide on MY language for easy deployment using Docker Compose. - Documented the use of spawn on MY language for asynchronous tasks and how to configure heartbeat settings. - Included a troubleshooting section on MY language for common model-related errors. * docs: add Malay language support to documentation * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1.5 KiB
1.5 KiB
Penyelesaian Masalah
"model ... not found in model_list" atau OpenRouter "free is not a valid model ID"
Gejala: Anda akan melihat salah satu daripada mesej berikut:
Error creating provider: model "openrouter/free" not found in model_list- OpenRouter memulangkan 400:
"free is not a valid model ID"
Punca: Medan model dalam entri model_list anda ialah nilai yang dihantar ke API. Untuk OpenRouter, anda mesti menggunakan ID model penuh, bukan bentuk singkatan.
- Salah:
"model": "free"→ OpenRouter menerimafreedan menolaknya. - Betul:
"model": "openrouter/free"→ OpenRouter menerimaopenrouter/free(routing auto free-tier).
Penyelesaian: Dalam ~/.picoclaw/config.json (atau laluan config anda):
- agents.defaults.model mesti sepadan dengan
model_namedalammodel_list(contohnya"openrouter-free"). - Medan model bagi entri tersebut mesti merupakan ID model OpenRouter yang sah, contohnya:
"openrouter/free"– auto free-tier"google/gemini-2.0-flash-exp:free""meta-llama/llama-3.1-8b-instruct:free"
Example snippet:
{
"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"
}
]
}
Dapatkan kunci anda di OpenRouter Keys.