python Pydantic AI Releases · · 2.31.1

Pydantic-AI v2.31.1 Patch Release Addresses Model-Specific Output Issues

sdkaigaengineerpython-agentic
patch

Pydantic-AI v2.31.1 is a patch release focused on improving compatibility with various large language models. It fixes an issue where native structured output was denied for Claude Sonnet 5 and Fable 5 on AWS Bedrock. Additionally, the update ensures graceful fallback to a lower `thinking_level` for Gemini models that reject the `MINIMAL` setting. These changes enhance the reliability of structured output generation for developers using these specific AI platforms.

Fixes (2)
  • Deny native structured output for Claude Sonnet 5 and Fable 5 on Bedrock by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/7374

  • Fall back to thinking_level='LOW' for Gemini models that reject MINIMAL by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/7469

Read the original announcement →

https://github.com/pydantic/pydantic-ai/releases/tag/v2.31.1

Related releases