v1.75.0
pydantic/pydantic-aiv1.75.0Apr 1, 2026by DouweM
AI Summary
Focuses on new embedding support for Gemini and Flex PayGo integration with VertexAI, alongside numerous bug fixes for cache control, Bedrock, and OpenRouter error handling.
Key Highlights
- Added types and limits for `gemini-embedding-2-preview`.
- Implemented support for Flex PayGo with VertexAI.
- Fixed cache control TTL stripping for Bedrock clients.
- Fixed `DataUIPart` handling in Vercel AI adapter.
- Fixed OpenRouter null field handling.
New Features
- Gemini embedding support
- Flex PayGo with VertexAI
Full Release Notes
<!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### 🚀 Features * Feat(embeddings): types and limits for gemini-embedding-2-preview by @yorickvP in https://github.com/pydantic/pydantic-ai/pull/4874 * Implement support for Flex PayGo with VertexAI by @ewjoachim in https://github.com/pydantic/pydantic-ai/pull/4312 ### 🐛 Bug Fixes * Stop stripping TTL from cache control for Bedrock clients by @fuyi in https://github.com/pydantic/pydantic-ai/pull/4915 * fix: handle `DataUIPart` in Vercel AI adapter user message processing (#4704) by @sudo-nick in https://github.com/pydantic/pydantic-ai/pull/4712 * fix: count only leading system messages when inserting instructions by @sztoplover-bit in https://github.com/pydantic/pydantic-ai/pull/4833 * fix: consistent error handling between `run_sync` and `run_stream` for invalid output tool calls by @Spectual in https://github.com/pydantic/pydantic-ai/pull/4860 * fix(openrouter): handle null top-level fields when response is nested in provider field by @adityasingh2400 in https://github.com/pydantic/pydantic-ai/pull/4528 ## New Contributors * @fuyi made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4915 * @sudo-nick made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4712 * @yorickvP made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4874 * @ewjoachim made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4312 * @sztoplover-bit made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4833 * @Spectual made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4860 **Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v1.74.0...v1.75.0