Last updated: November 26, 2026
Pydantic AI 2.75, released on November 25, 2026, makes FallbackModel switch models on empty or unreadable responses, keeps low-authority workspace files out of agent instructions, and adds RunContext.submit_output(). It follows 2.74, released a day earlier, which brought computer use to Claude, OpenAI and Gemini models through one tool.
This guide covers both releases, since most teams will move from 2.73 straight to 2.75.
Contents
- What changed in Pydantic AI 2.74 and 2.75
- Computer use across Claude, GPT and Gemini
- Fallbacks on empty and invalid responses
- Workspace file authority and instructions
- Gemini token counts and the December 1 reroute
- How to upgrade to Pydantic AI 2.75
- Pydantic AI 2.75 vs. 2.73
- Frequently asked questions
What changed in Pydantic AI 2.74 and 2.75
Version 2.74.0 was published on November 24 at 6:22 p.m. ET and 2.75.0 on November 25 at 1:21 p.m. ET (v2.74.0 release notes) (v2.75.0 release notes).
| Area | Release | What changed |
|---|---|---|
| Computer use | 2.74 | New ComputerTool contract in core and a ComputerUse() capability in Pydantic AI Harness |
| Browser | 2.74 | New CDPBrowser capability drives Chrome with raw DevTools Protocol commands |
| Security | 2.74 | Six medium-severity advisories fixed, mostly in PlaywrightBrowser egress controls |
| Fallbacks | 2.75 | ModelEmptyResponseError and ModelInvalidResponseError now trigger fallback by default |
| Instructions | 2.75 | Workspace files below 'operator' authority no longer enter the instructions |
| Tools | 2.75 | RunContext.submit_output() lets a tool submit the run’s final output |
| Pax | 2.75 | Folder trust prompt with /trust, pax --version and a faster /sandbox |
Computer use across Claude, GPT and Gemini
Version 2.74 adds pydantic_ai.computer_use and ComputerTool to the core package, plus a Harness ComputerUse() capability with the Display protocols it drives. The same tool is sent as each provider’s native computer use tool: Claude models on Anthropic, GPT-5.4 and later on OpenAI, and Gemini on Google (v2.74.0). The Harness docs describe Computer Use as a way to “see and control the desktop of the run’s workspace” (Pydantic AI Harness docs).
To give an agent a desktop, many sandbox integrations gained a desktop option, including DockerContainer(desktop=True), E2BSandbox(desktop=True) and DaytonaSandbox(desktop=True), plus Modal, Kubernetes and others. One compatibility note: ComputerTool is now in NATIVE_TOOLS_REQUIRING_CONFIG, so it needs a computer tool to run its calls.
2.74 also fixed six medium-severity advisories. Most concern PlaywrightBrowser egress checks; under the default enforced egress policy, pages no longer have WebRTC, WebTransport, WebSocketStream or FedCM (v2.74.0 security section). For a hosted alternative to browser automation, see our Browser Use 1.0 guide.
Fallbacks on empty and invalid responses
Before 2.75, an empty stream or an OpenAI Chat completion without choices raised UnexpectedModelBehavior and ended the run. Now these raise ModelEmptyResponseError or ModelInvalidResponseError, and with the default fallback_on, both FallbackModel and the ModelFallback capability move on to the next model (v2.75.0). The models documentation confirms that you can narrow this by passing specific categories, such as fallback_on=(ModelRateLimitError, ModelUnavailableError, ModelServerError) (Models overview).
Both new errors subclass ModelAPIError and UnexpectedModelBehavior. Existing except UnexpectedModelBehavior blocks still catch them, but an except ModelAPIError placed earlier now takes them first. Check handler order before upgrading.
Workspace file authority and instructions
The most important change for coding agents is about trust. Text from a workspace file below 'operator' authority no longer reaches the instructions. RepoContext points the model to such a file instead of inlining it, Skills offers such skills through list_skills and load_skill tools, and Memory attributes the snapshot to its MEMORY.md. Files at 'operator', the default, are unchanged (v2.75.0).
A related change lowers a capability’s instructions with its authority, so a capability set with with_authority(), including an MCP capability and its server instructions, is sent as framed data on the user channel rather than in the system prompt. This keeps untrusted repository or MCP text out of the system prompt. Our Claude Code 2.1.332 guide covers a similar MCP skills feature in another tool.
Gemini token counts and the December 1 reroute
Two Gemini changes affect cost tracking. In 2.75, a gemini* model used through OpenAIProvider reports thinking tokens in output_tokens, so counts and cost rise and UsageLimits trip sooner. In 2.74, streaming the same setup stopped summing running totals, so cost figures drop (v2.74.0) (v2.75.0).
Also, thinking=False on gemini-2.5-flash through the Gemini API now sends thinking_budget=128 instead of 0, ahead of that model’s reroute to gemini-3.5-flash-lite on December 1, 2026. After the reroute, a budget of 0 fails with a 400 error.
How to upgrade to Pydantic AI 2.75
Pydantic AI requires Python 3.11 or later (Installation docs). Follow these steps:
- If you use Temporal or DBOS, let in-flight runs finish, or use Temporal worker versioning or a new DBOS app version, as the 2.75 notes advise.
- Upgrade with
pip install -U pydantic-aioruv add pydantic-ai. For a smaller install, usepydantic-ai-slimwith only the extras you need. - Review exception handlers so
except ModelAPIErrordoes not swallow the new empty-response errors unintentionally. - If you want the old behavior of raising instead of falling back, pass a custom
fallback_onthat excludes them. - Retune any
UsageLimitsset against Gemini token counts throughOpenAIProvider. - For computer use, install
pydantic-ai-harness, addComputerUse()and choose a sandbox withdesktop=True.
The Harness package installs pydantic-ai-slim, and pydantic-ai-pax installs the Harness, so installing Pax brings the whole stack (Harness docs). Expect one prompt cache miss on the first request after upgrading if you use RepoContext(autoload_instructions=False) with nested instruction files, or Coder on GPT models.
Pydantic AI 2.75 vs. 2.73
| Feature | 2.73 | 2.75 (with 2.74) |
|---|---|---|
| Computer use | No core tool contract | One computer tool mapped to Claude, GPT-5.4+ and Gemini |
| Empty model response | Raises UnexpectedModelBehavior |
Falls back to the next model by default |
| Low-authority workspace files | Could reach instructions | Kept out of instructions, offered as data or tools |
| Final output from a tool | Not available | RunContext.submit_output() |
| Context clearing | Basic ClearToolResults |
Target specific tools, keep_turns, callable placeholder |
| Durable waits | No Temporal waiter | Temporal ExternalEventWaiter for deferred tools and AskUser |
The 2.74 release also sends static instructions as leading input messages on GPT-6.2, which never caches top-level instructions, so long system prompts cache better; see our GPT-6.2 Astra and Sol guide. Unlike goose 1.61, Pydantic AI is a library, though Pax offers a ready terminal agent. For computer use in a hosted product, compare our Claude computer use for Teams guide.
Limitations: the release notes do not publish benchmarks, and computer use depends on each provider’s own model support and pricing, which Pydantic does not set.
Frequently asked questions
When was Pydantic AI 2.75 released?
Pydantic published v2.75.0 on GitHub on November 25, 2026, at 1:21 p.m. ET, about 19 hours after v2.74.0, which arrived on November 24 at 6:22 p.m. ET. Both are minor releases in the V2 line.
Does Pydantic AI support computer use?
Yes. Version 2.74 added a core computer tool contract and a ComputerUse capability in Pydantic AI Harness. It sends the tool as the native computer use tool on Claude models, OpenAI GPT-5.4 and later, and Gemini, and many sandboxes gained a desktop option.
What does FallbackModel do on an empty response in 2.75?
With the default fallback_on setting, FallbackModel and the ModelFallback capability now move to the next model when a response is empty or unreadable. Two new errors, ModelEmptyResponseError and ModelInvalidResponseError, signal these cases instead of UnexpectedModelBehavior.
Is upgrading to Pydantic AI 2.75 safe for durable runs?
Mostly, but the release notes advise letting in-flight Temporal or DBOS runs finish, or using Temporal worker versioning or a new DBOS app version, before upgrading, because runs now record extra workspace calls at start.
How do I install Pydantic AI 2.75?
Run pip install -U pydantic-ai or uv add pydantic-ai. The package requires Python 3.11 or later. For the coding agent and harness tools, install pydantic-ai-harness, and for the Pax terminal interface, install pydantic-ai-pax.
Sources
- GitHub: Pydantic AI v2.75.0 release notes
- GitHub: Pydantic AI v2.74.0 release notes
- Pydantic AI docs: Models overview and FallbackModel
- Pydantic AI docs: Pydantic AI Harness
- Pydantic AI docs: Installation
Featured image: Pydantic AI logo from the pydantic/pydantic-ai GitHub repository, MIT License, copyright Pydantic Services Inc. FreeAnswers is not affiliated with Pydantic.