v2.24.0

pydantic/pydantic-aiv2.24.0Aug 5, 2026by dsfaccini

AI Summary

A comprehensive bug fix release improving provider compatibility, specifically addressing Google provider timeouts, OpenRouter model name recognition, and Bedrock parameter handling.

Key Highlights

  • Fixed Google provider dropping an explicit `timeout=0`
  • Recognized `kimi-k2-thinking` and Groq `groq/compound` model names
  • Fixed `top_p=0.0` sending to Bedrock

Full Release Notes

<!-- Release notes generated using configuration in .github/release.yml at main -->

## What's Changed
### 🐛 Bug Fixes
* 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

## New Contributors
* @wesleyzhangwq made their first contribution in https://github.com/pydantic/pydantic-ai/pull/7127

**Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v2.23.0...v2.24.0