Default `clai` and `clai web` to `openai:gpt-6.1-sol` instead of `openai:gpt-5`

Merged
DS
16d ago
+21-15

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 and clai web tests assert the new default.

  • Live calls on openai:gpt-6.1-sol (same probe on openai:gpt-5 as the baseline), through cli() and run_web_command() in-process with no --model:

    • one-shot streaming and --no-stream;
    • a function tool on an -a agent with no model of its own;
    • two streamed chat turns with a tool call, replaying the signed reasoning item from the first turn;
    • clai web POST /api/chat, plain and with -t web_search.

    clai requests no reasoning summary, so neither model shows thinking text in the terminal or the web UI. No test needs a new cassette.

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 -

2026-11-19 · pre-push review 1 of 3 at 974888b775051cd2cf0925e69cdb999661b3724a · iter -

2026-11-19 · pre-push review 1 of 3 at 974888b775051cd2cf0925e69cdb999661b3724a · iter -

2026-11-19 · step 7 second opinion: none · iter -

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.