v1.50.0
pydantic/pydantic-aiv1.50.0Jan 29, 2026by DouweM
AI Summary
Exposes usage limits and model settings to CLI users and fixes serialization issues in Temporal workflows.
Key Highlights
- Exposed `usage_limits` and `model_settings` to users running with `to_cli()`
- Added setting to include OpenAI raw text annotations in `TextPart.provider_details`
- Fixed serialization of `BinaryContent` and `DocumentUrl` in Temporal
New Features
- Exposed `usage_limits` and `model_settings` to CLI
- OpenAI raw text annotations setting
Full Release Notes
<!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### 🚀 Features * Expose `usage_limits` and `model_settings` to users running with `to_cli()` by @tommy-waltmann in https://github.com/pydantic/pydantic-ai/pull/4133 * Add setting to include OpenAI raw text annotations in `TextPart.provider_details` by @corytomlinson in https://github.com/pydantic/pydantic-ai/pull/3787 ### 🐛 Bug Fixes * Fix serialization of `BinaryContent` returned by tool in Temporal by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/4043 * Fix serialization of `DocumentUrl` with custom `media_type` in Temporal by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/3968 * Retry instead of raising error when Google returns 0 candidates by @wassafshahzad in https://github.com/pydantic/pydantic-ai/pull/4125 * Correct OpenAI `prompt_cache_retention` literal from 'in-memory' to 'in_memory' by @davidfertube in https://github.com/pydantic/pydantic-ai/pull/4126 ## New Contributors * @tommy-waltmann made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4133 * @corytomlinson made their first contribution in https://github.com/pydantic/pydantic-ai/pull/3787 * @davidfertube made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4126 **Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v1.49.0...v1.50.0