fix(coding-agent): require --model when --provider is given

--provider without --model was ignored and the default model from
another provider ran instead. It now fails with an error. Also fixes
the outdated "(default: google)" in the --help text.

closes #10236
This commit is contained in:
David Brailovsky 2026-10-01 10:24:55 +02:00
parent 70c036211d
commit 0c453048bd
4 changed files with 9 additions and 2 deletions

View file

@ -61,7 +61,7 @@ pi --model sonnet:high
See [Choose a Model](models.md) for model selection and [Provider Authentication](providers.md) for credentials.
- `--provider <name>`<br>
Restricts `--model` lookup to one provider.
Restricts `--model` lookup to one provider. It requires `--model`.
- `--model <pattern>`<br>
Selects by exact ID or fuzzy ID/name match. It accepts `provider/id` and an optional `:<thinking>` suffix.
- `--api-key <key>`<br>