v1.28.0

pydantic/pydantic-aiv1.28.0Dec 9, 2025by DouweM

AI Summary

This release adds native structured output support for claude-haiku-4-5, supports multi-character Bedrock geo prefixes, and removes typings stubs while improving OpenRouter reasoning details handling.

Key Highlights

  • Adds native structured output support for claude-haiku-4-5
  • Support us-gov. and other multi-character Bedrock geo prefixes
  • Allow missing content in streamed OpenRouter reasoning details
  • Remove typings stubs

New Features

  • Native structured output for claude-haiku-4-5
  • Multi-character Bedrock geo prefix support
  • Improved OpenRouter reasoning details handling
  • Typings stubs removal

Full Release Notes

## What's Changed
* Adds native structured output support for `claude-haiku-4-5` by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/3670
* Support `us-gov.` and other multi-character Bedrock geo prefixes by @Leundai in https://github.com/pydantic/pydantic-ai/pull/3645
* Allow missing content in streamed OpenRouter reasoning details by @ajac-zero in https://github.com/pydantic/pydantic-ai/pull/3674
* Remove typings stubs by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/3673

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

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