Default `clai` and `clai web` to `openai:gpt-6.1-sol` instead of `openai:gpt-5`
Closes #14035
OpenAI shuts down gpt-5 on 2026-12-11 (deprecations) and names gpt-6.1-sol as its replacement. clai and clai web fall back to openai:gpt-5 when no --model (or agent model) is given, so from that date they would fail out of the box. This makes openai:gpt-6.1-sol the default.
New public surface: none.
User-visible behavior
$ clai "hello"
-clai - Pydantic AI CLI v… with openai:gpt-5
+clai - Pydantic AI CLI v… with openai:gpt-6.1-sol
clai --help now reads Defaults to "openai:gpt-6.1-sol"; clai web without --agent or -m preselects openai:gpt-6.1-sol.
Verification
-
tests/test_cli.py: the banner, one-line intro andclai webtests assert the new default. -
Live calls on
openai:gpt-6.1-sol(same probe onopenai:gpt-5as the baseline), throughcli()andrun_web_command()in-process with no--model:- one-shot streaming and
--no-stream; - a function tool on an
-aagent with no model of its own; - two streamed chat turns with a tool call, replaying the signed reasoning item from the first turn;
clai webPOST /api/chat, plain and with-t web_search.
clairequests no reasoning summary, so neither model shows thinking text in the terminal or the web UI. No test needs a new cassette. - one-shot streaming and
What changes for existing users: clai and clai web run without --model now call gpt-6.1-sol instead of gpt-5; passing --model, or an agent with its own model, is unchanged.
Out of scope, deliberately: the e.g. "openai:gpt-5" example in the --model help text and other gpt-5 examples, which don't name the default.
PR decisions
2026-11-19 · new clai default: openai:gpt-6.1-sol · iter -
- Decision: Swap now to gpt-6.1-sol (David, via overmanager dispatch 2026-11-19T19:57Z); P2 exception to the no-new-work freeze
- Why: OpenAI shuts down gpt-5 on 2026-12-11 and names gpt-6.1-sol as its replacement
- Source: https://github.com/pydantic/pydantic-ai/issues/14035
- Session: c0ac033b-731d-4ffa-8609-983526a84468
2026-11-19 · pre-push review 1 of 3 at 69eafec4901ab213b59f04159cf1dbd4a45e4f31 · iter -
- Decision: reserved; dispatched (haiku, policy-base-review)
- Why: tree 57eba4ebb62649b92e6943212fdbe96fe02da0c2; scope 2316c6d6e82345ea3b94ece2705c806dfbd86d14..69eafec4901ab213b59f04159cf1dbd4a45e4f31 (full branch); first review
- Source: https://github.com/pydantic/pydantic-ai/tree/clai-default-gpt-6-1-sol
- Session: c0ac033b-731d-4ffa-8609-983526a84468
2026-11-19 · pre-push review 1 of 3 at 974888b775051cd2cf0925e69cdb999661b3724a · iter -
- Decision: reserved; dispatched (haiku, policy-base-review)
- Why: tree 625bee649be2c361d129c646ccdf5cd5650e6f00; scope 2316c6d6e82345ea3b94ece2705c806dfbd86d14..974888b775051cd2cf0925e69cdb999661b3724a (full branch); the 69eafec reservation was never launched (a test failure moved the candidate first)
- Source: https://github.com/pydantic/pydantic-ai/tree/clai-default-gpt-6-1-sol
- Session: c0ac033b-731d-4ffa-8609-983526a84468
- Supersedes: pre-push review 1 of 3 at 69eafec4901ab213b59f04159cf1dbd4a45e4f31
2026-11-19 · pre-push review 1 of 3 at 974888b775051cd2cf0925e69cdb999661b3724a · iter -
- Decision: no findings (current at 974888b775051cd2cf0925e69cdb999661b3724a)
- Why: tree 625bee649be2c361d129c646ccdf5cd5650e6f00; scope 2316c6d6e82345ea3b94ece2705c806dfbd86d14..974888b775051cd2cf0925e69cdb999661b3724a (full branch); haiku via policy-base-review
- Source: https://github.com/pydantic/pydantic-ai/tree/clai-default-gpt-6-1-sol
- Session: c0ac033b-731d-4ffa-8609-983526a84468
2026-11-19 · step 7 second opinion: none · iter -
- Decision: No additional review surface (David, via overmanager dispatch 2026-11-19T22:51Z)
- Why: Settled constant swap, live-verified; douwebot and PR Review Checks passed on 974888b775051cd2cf0925e69cdb999661b3724a
- Source: https://github.com/pydantic/pydantic-ai/pull/14042
- Session: c0ac033b-731d-4ffa-8609-983526a84468
Checklist
- No breaking changes in accordance with the version policy.
- Any permitted compatibility impact has a label, warning, migration and release note, and an exact API-check waiver if the gate reports it.
- PR title is fit for the release changelog.
Summary by cubic
Changes the default model for clai and clai web from openai:gpt-5 to openai:gpt-6.1-sol, since OpenAI retires gpt-5 on 2026-12-11 and names gpt-6.1-sol as its replacement. Running without --model (or an agent with its own model) now calls gpt-6.1-sol; explicitly passing a model is unchanged.