v1.34.0

pydantic/pydantic-aiv1.34.0Dec 16, 2025by DouweM

AI Summary

Adds a Web Chat UI for agents and improves file handling for Anthropic and OpenAI models. It also fixes compatibility issues with Temporal Agent and provider initialization.

Key Highlights

  • Add Web Chat UI for any agent
  • Support `FileUrl.force_download` in Anthropic and OpenAI
  • Fix sync history processors with TemporalAgent
  • Make OpenRouter and DeepSeek provider overloads less restrictive

New Features

  • Web Chat UI
  • Force download for file URLs
  • TemporalAgent sync history fix
  • Provider initialization improvements

Full Release Notes

## What's Changed
* Add Web Chat UI for any agent that can be launched using `clai web` or `Agent.to_web()` by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/3456
* Support `FileUrl.force_download` in `AnthropicModel` and `OpenAIResponsesModel` by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/3694
* Fix using sync history processors, instructions functions, and output functions with `TemporalAgent` by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/3704
* Make `OpenRouterProvider` and `DeepSeekProvider` `__init__` overloads less restrictive by @xcpky in https://github.com/pydantic/pydantic-ai/pull/3739
* Bump min version of griffe to `1.14.0` by @jerry-reevo in https://github.com/pydantic/pydantic-ai/pull/3743


**Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v1.33.0...v1.34.0