feat(config): add default model shorthands

This commit is contained in:
Peter Steinberger
2026-01-05 01:02:30 +01:00
parent 7a63b4995b
commit 2899a986a8
7 changed files with 172 additions and 4 deletions

View File

@@ -434,6 +434,17 @@ Controls the embedded agent runtime (model/thinking/verbose/timeouts).
`imageModel` selects an image-capable model for the `image` tool.
`imageModelFallbacks` lists ordered fallback image models for the `image` tool.
Clawdbot also ships a few built-in `modelAliases` shorthands (when an `agent` section exists):
- `opus` -> `anthropic/claude-opus-4-5`
- `sonnet` -> `anthropic/claude-sonnet-4-5`
- `gpt` -> `openai/gpt-5.2`
- `gpt-mini` -> `openai/gpt-5-mini`
- `gemini` -> `google/gemini-3-pro-preview`
- `gemini-flash` -> `google/gemini-3-flash-preview`
If you configure the same alias name (case-insensitive) yourself, your value wins (defaults never override).
```json5
{
agent: {