v2.1.1
pydantic/pydantic-aiv2.1.1Jun 30, 2026by DouweM
AI Summary
A maintenance release focusing on bug fixes including image detail forwarding for Groq and Mistral models, sync callback handling on Pyodide/emscripten, and various provider-specific fixes.
Key Highlights
- Image detail forwarding for Groq and Mistral models
- Sync callbacks run inline on Pyodide/emscripten by default
- Fix for group_by_temporal emitting first item alone
- Fix missing output_audio_tokens in usage accumulation
- Multiple Heroku and TogetherProvider fixes
Full Release Notes
<!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### 📖 Documentation * feat: add TwelveLabs Pegasus video-understanding example by @mohit-twelvelabs in https://github.com/pydantic/pydantic-ai/pull/6061 ### 🐛 Bug Fixes * Forward image `detail` from `vendor_metadata` for `GroqModel` and `MistralModel` by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/6014 * fix(utils): run sync callbacks inline on Pyodide/emscripten by default by @syf2211 in https://github.com/pydantic/pydantic-ai/pull/6088 * Fix `group_by_temporal` emitting first item alone when delayed past soft_max_interval by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/5947 * Fix missing `output_audio_tokens` in usage accumulation by @jnMetaCode in https://github.com/pydantic/pydantic-ai/pull/4594 * fix(heroku): route model names through family profiles so thinking isn't dropped by @Bartok9 in https://github.com/pydantic/pydantic-ai/pull/6070 * Guard `TogetherProvider.model_profile` against model names without a `/` by @immuhammadfurqan in https://github.com/pydantic/pydantic-ai/pull/6113 * fix(`GoogleModel`): include `CodeExecutionTool` in `include_server_side_tool_invocations` check by @aarsh767 in https://github.com/pydantic/pydantic-ai/pull/6052 * fix(groq): surface `reasoning_tokens` in usage details by @tcconnally in https://github.com/pydantic/pydantic-ai/pull/5986 ## New Contributors * @Iam-Mil made their first contribution in https://github.com/pydantic/pydantic-ai/pull/6132 * @jnMetaCode made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4594 * @mohit-twelvelabs made their first contribution in https://github.com/pydantic/pydantic-ai/pull/6061 * @immuhammadfurqan made their first contribution in https://github.com/pydantic/pydantic-ai/pull/6113 * @aarsh767 made their first contribution in https://github.com/pydantic/pydantic-ai/pull/6052 * @tcconnally made their first contribution in https://github.com/pydantic/pydantic-ai/pull/5986 **Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v2.1.0...v2.1.1