docs: fix agents.defaults model configuration format

Change incorrect object format model.primary/fallbacks to correct
flat format model_name/model_fallbacks in Agent defaults example.

The AgentDefaults struct does not support the object format used
in AgentConfig, so the documentation example was misleading.
This commit is contained in:
dtapps 2026-04-27 09:30:11 +08:00
parent 39dec35408
commit f62e8621fc
2 changed files with 4 additions and 8 deletions

View file

@ -393,10 +393,8 @@ It also applies cooldown tracking per candidate to avoid immediately retrying a
], ],
"agents": { "agents": {
"defaults": { "defaults": {
"model": { "model_name": "qwen-main",
"primary": "qwen-main", "model_fallbacks": ["deepseek-backup", "gemini-backup"]
"fallbacks": ["deepseek-backup", "gemini-backup"]
}
} }
} }
} }

View file

@ -362,10 +362,8 @@ PicoClaw 按下面的规则解析 `provider` 和最终发给上游的模型 ID
], ],
"agents": { "agents": {
"defaults": { "defaults": {
"model": { "model_name": "qwen-main",
"primary": "qwen-main", "model_fallbacks": ["deepseek-backup", "gemini-backup"]
"fallbacks": ["deepseek-backup", "gemini-backup"]
}
} }
} }
} }