docs: fix config examples to match config.go structs

- providers.md: agents.defaults.model → model_name (4 occurrences)
- providers.md: remove non-existent session.backlog_limit field
- credential_encryption.md: add required model field to model_list example
- ANTIGRAVITY_AUTH.md: agents.defaults.model → model_name
This commit is contained in:
BeaconCat 2026-03-20 15:01:42 +08:00
parent 8c6f2376ad
commit 223195dc8e
3 changed files with 7 additions and 7 deletions

View file

@ -584,7 +584,7 @@ Each SSE message (`data: {...}`) is wrapped in a `response` field:
], ],
"agents": { "agents": {
"defaults": { "defaults": {
"model": "gemini-flash" "model_name": "gemini-flash"
} }
} }
} }

View file

@ -30,6 +30,7 @@ enc://AAAA...base64...
"model_list": [ "model_list": [
{ {
"model_name": "gpt-4o", "model_name": "gpt-4o",
"model": "openai/gpt-4o",
"api_key": "enc://AAAA...base64...", "api_key": "enc://AAAA...base64...",
"api_base": "https://api.openai.com/v1" "api_base": "https://api.openai.com/v1"
} }

View file

@ -95,7 +95,7 @@ This design also enables **multi-agent support** with flexible provider selectio
], ],
"agents": { "agents": {
"defaults": { "defaults": {
"model": "gpt-5.4" "model_name": "gpt-5.4"
} }
} }
} }
@ -268,7 +268,7 @@ The old `providers` configuration is **deprecated** but still supported for back
], ],
"agents": { "agents": {
"defaults": { "defaults": {
"model": "glm-4.7" "model_name": "glm-4.7"
} }
} }
} }
@ -300,7 +300,7 @@ This keeps the runtime lightweight while making new OpenAI-compatible backends m
"agents": { "agents": {
"defaults": { "defaults": {
"workspace": "~/.picoclaw/workspace", "workspace": "~/.picoclaw/workspace",
"model": "glm-4.7", "model_name": "glm-4.7",
"max_tokens": 8192, "max_tokens": 8192,
"temperature": 0.7, "temperature": 0.7,
"max_tool_iterations": 20 "max_tool_iterations": 20
@ -330,12 +330,11 @@ picoclaw agent -m "Hello"
{ {
"agents": { "agents": {
"defaults": { "defaults": {
"model": "anthropic/claude-opus-4-5" "model_name": "anthropic/claude-opus-4-5"
} }
}, },
"session": { "session": {
"dm_scope": "per-channel-peer", "dm_scope": "per-channel-peer"
"backlog_limit": 20
}, },
"providers": { "providers": {
"openrouter": { "openrouter": {