python Pydantic AI Releases · · 2.24.0

pydantic-ai v2.24.0: Bug Fixes and Provider Improvements

sdkaiengineerpython-agentic
patch

Pydantic-ai has released version 2.24.0, focusing on bug fixes and enhancements across various AI model providers. Key improvements include better handling of timeouts, model name recognition, and stream processing for services like Google, OpenAI, Bedrock, Kimi, OpenRouter, Groq, and Vercel AI. These updates aim to improve reliability and compatibility for developers integrating these models into their applications.

  • Fix Google provider dropping an explicit timeout=0 by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/7114
  • Filter unavailable names from Google allowed_function_names by @LHMQ878 in https://github.com/pydantic/pydantic-ai/pull/6875
  • Preserve caller-owned OpenAI model settings by @LHMQ878 in https://github.com/pydantic/pydantic-ai/pull/6870
  • Send top_p=0.0 to Bedrock by @LHMQ878 in https://github.com/pydantic/pydantic-ai/pull/6864
  • Honour ignore_streamed_leading_whitespace in Bedrock streams by @LHMQ878 in https://github.com/pydantic/pydantic-ai/pull/6828
Fixes (12)
  • Fix Google provider dropping an explicit timeout=0 by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/7114
  • Filter unavailable names from Google allowed_function_names by @LHMQ878 in https://github.com/pydantic/pydantic-ai/pull/6875
  • Preserve caller-owned OpenAI model settings by @LHMQ878 in https://github.com/pydantic/pydantic-ai/pull/6870
  • Send top_p=0.0 to Bedrock by @LHMQ878 in https://github.com/pydantic/pydantic-ai/pull/6864
  • Honour ignore_streamed_leading_whitespace in Bedrock streams by @LHMQ878 in https://github.com/pydantic/pydantic-ai/pull/6828
  • Recognise kimi-k2-thinking and Heroku's kimi-k2-5 as Kimi reasoning models by @LHMQ878 in https://github.com/pydantic/pydantic-ai/pull/6823
  • Raise a UserError when an OpenRouter model omits its provider prefix by @LHMQ878 in https://github.com/pydantic/pydantic-ai/pull/6860
  • Recognise Groq groq/compound model names by @LHMQ878 in https://github.com/pydantic/pydantic-ai/pull/6825
  • Make Vercel AI ToolApprovalResponded.approved a StrictBool by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/6995
  • Guard against negative Retry-After integer values in wait_retry_after by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/7066
  • Skip inbound AG-UI content newer than the installed ag-ui-protocol instead of returning 422 by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7119

  • Preserve stream part indexes during apply_event replay by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7138
Read the original announcement →

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

Related releases