fix(coding-agent): make resolveCliModel sync, update docs and changelog

This commit is contained in:
Mario Zechner 2026-02-12 19:04:51 +01:00
parent 56342258e1
commit 4793f7c92d
7 changed files with 35 additions and 22 deletions

View file

@ -452,7 +452,7 @@ pi config # Enable/disable package resources
| Option | Description |
|--------|-------------|
| `--provider <name>` | Provider (anthropic, openai, google, etc.) |
| `--model <id>` | Model ID |
| `--model <pattern>` | Model pattern or ID (supports `provider/id` and optional `:<thinking>`) |
| `--api-key <key>` | API key (overrides env vars) |
| `--thinking <level>` | `off`, `minimal`, `low`, `medium`, `high`, `xhigh` |
| `--models <patterns>` | Comma-separated patterns for Ctrl+P cycling |
@ -524,6 +524,12 @@ pi -p "Summarize this codebase"
# Different model
pi --provider openai --model gpt-4o "Help me refactor"
# Model with provider prefix (no --provider needed)
pi --model openai/gpt-4o "Help me refactor"
# Model with thinking level shorthand
pi --model sonnet:high "Solve this complex problem"
# Limit model cycling
pi --models "claude-*,gpt-4o"