pydantic-ai v2.73.0 — v2.73.0 (2026-11-23)
- Source
- github.com
- Author
- dsfaccini
- Date

Context
Pydantic AI 2.73.0 changes how agents behave when a model setting meets a model that refuses it, and that can change which model answers in a fallback chain. Pydantic AI, the Python agent framework from Pydantic, lets you set unified model settings such as ``, `presence_penalty` or `stop_sequences` once for an agent, and it translates them for each provider. A `FallbackModel` lists several models and tries the next one when a request fails, and by default that includes a provider rejecting the request with a 400 error.
The problem, reported in issue #12413, is that agent-level settings go to every model in the chain, and some models reject settings others accept. A setting that suits the first model could make the fallback model fail too, ending the whole run with an error. Pull request #12426 records which settings each refuses and removes them before the request is sent. Grok models no longer receive presence or frequency penalties, and Gemini API models no longer receive them either. Claude models with extended thinking no longer receive a `temperature` other than 1, a `top_p` below 0.95, or `top_k`. Most of these drops are silent; only Grok's dropped `stop_sequences` raises an `UnsupportedSettingWarning`.
The side effect is the compatibility note in the release notes: a `FallbackModel` that relied on the first model's 400 to reach a later model "now stays on the first model without the setting." Suppose an agent sets `presence_penalty` and lists a Grok model first (a hypothetical ). Before 2.73.0, Grok rejected the request and the chain moved on to a model that honors the penalty. Now Grok answers without the penalty, and because that drop produces no warning, nothing in the output signals the switch. The PR argues the change fits a minor release because every affected Grok and Gemini API model already rejected these settings, so no request that used to succeed now behaves differently. The fix the notes give is to list a model that supports the setting first.
- Pydantic AI v2.73.0 drops unified settings that Claude, Gemini and Grok models reject instead of sending them. A FallbackModel that relied on that 400 error to reach a later model now stays on the first one; the notes say to list a model that supports the setting first.
- SubAgents can now hand a delegate's deferred tool calls to the caller and resume the delegate once the caller answers them. Deferred tool calls that get cut off now raise IncompleteToolCall.
- The Coder tool now downscales images it reads to at most 1024 pixels on the longest side, adjustable with FileSystem(max_image_side=...), and the coder extra now installs pillow>=12.3.0.
- Several fixes keep secrets out of logs: only the origin of the gh-aw engine's base URL is logged, so credentials in PAI_BASE_URL stay hidden, and PlaywrightBrowser CDP endpoint credentials are redacted from attach errors.
- The clai and clai web now default to openai:gpt-6.1-sol instead of openai:gpt-5, and E2BSandbox gains an idle_timeout option so a busy run is not paused by sandbox_timeout.
- Sampling controls — Parameters that shape how deterministic or varied model generation becomes.
- Model family — A group of related models developed under a shared name or approach.
- Setup — The combination of a model, a harness, its connections and the path the task's data takes, considered together for a task.
- CLI tool — A command-line capability an agent can discover and compose through shell commands.
Checking sign-in…
Loading comments…






