v1.29.0

pydantic/pydantic-aiv1.29.0Dec 10, 2025by DouweM

AI Summary

This release adds support for aspect ratio in Gemini image generation, passes container_id back to Anthropic API, upgrades temporalio to 1.20.0, and fixes several bugs related to OpenRouter responses and GoogleModel thinking signatures.

Key Highlights

  • Add support for aspect ratio in Gemini image generation
  • Pass container_id back to Anthropic API
  • Upgrade temporalio to 1.20.0
  • Fix error when OpenRouter response includes file annotations
  • Fix GoogleModel thinking signature not stored on tool calls when streaming

New Features

  • Aspect ratio configuration for Gemini image generation
  • container_id passing to Anthropic API
  • Temporalio dependency upgrade
  • OpenRouter file annotations handling
  • GoogleModel thinking signature persistence

Full Release Notes

## What's Changed
* Add support for aspect ratio in Gemini image generation by @mwildehahn and @ajac-zero in https://github.com/pydantic/pydantic-ai/pull/3672
* Pass `container_id` back to Anthropic API by @mattbrandman in https://github.com/pydantic/pydantic-ai/pull/3637
* Upgrade temporalio to 1.20.0 by @akrivka in https://github.com/pydantic/pydantic-ai/pull/3679
* Fix error when OpenRouter response includes file annotations by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/3671
* Suppress broken resource errors if cancelling by @dmontagu in https://github.com/pydantic/pydantic-ai/pull/3675
* Fix GoogleModel thinking signature not stored on tool calls when streaming by @jerry-heygen in https://github.com/pydantic/pydantic-ai/pull/3647
* Don't require `anthropic` dependency when using Anthropic model with other provider by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/3652

## New Contributors
* @akrivka made their first contribution in https://github.com/pydantic/pydantic-ai/pull/3679

**Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v1.28.0...v1.29.0