v1.91.0
pydantic/pydantic-aiv1.91.0May 7, 2026by DouweM
AI Summary
Adds support for OpenAI gpt-image-2 options and DeepSeek v4-flash/v4-pro models, while fixing Unicode preservation in YAML datasets and MCP history replay.
Key Highlights
- Support for DeepSeek v4 models (v4-flash and v4-pro)
- Support for OpenAI gpt-image-2 options
- Fix Unicode preservation in YAML datasets
- Fix MCP history replay for empty tool arguments
New Features
- DeepSeek v4-flash and v4-pro model support
- OpenAI gpt-image-2 options support
Full Release Notes
<!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### 🚀 Features * feat(openai): support `gpt-image-2` options by @banteg in https://github.com/pydantic/pydantic-ai/pull/5234 * feat(deepseek): add support for `deepseek-v4-flash` and`deepseek-v4-pro` by @SuperMarioYL in https://github.com/pydantic/pydantic-ai/pull/5195 ### 🐛 Bug Fixes * fix(evals): preserve Unicode in YAML datasets by @Kcstring in https://github.com/pydantic/pydantic-ai/pull/5245 * Skip empty `ModelResponse` in OpenAI Chat assistant message mapping by @DouweM in https://github.com/pydantic/pydantic-ai/pull/5300 * Fix MCP history replay for empty tool arguments by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/5314 ## New Contributors * @Kcstring made their first contribution in https://github.com/pydantic/pydantic-ai/pull/5245 * @khaldon made their first contribution in https://github.com/pydantic/pydantic-ai/pull/5301 * @SuperMarioYL made their first contribution in https://github.com/pydantic/pydantic-ai/pull/5195 * @banteg made their first contribution in https://github.com/pydantic/pydantic-ai/pull/5234 **Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v1.90.0...v1.91.0