v1.39.1

pydantic/pydantic-aiv1.39.1Jan 6, 2026by DouweM

AI Summary

A patch release fixing `partial_output` flags in `TextOutput` during streaming, fixing duplicated tool calls, updating `thoughtSignature` for Vertex Gemini 3, and correcting `input_tokens` calculation for Bedrock models.

Key Highlights

  • Fix `partial_output` flag in `TextOutput` during streaming
  • Fix duplicated tool calls with `partial_output=False`
  • Update `thoughtSignature` for Vertex Gemini 3
  • Fix `input_tokens` calculation for Bedrock model

Full Release Notes

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

## What's Changed
### 🐛 Bug Fixes
* Fix `partial_output` flag in `TextOutput` during streaming by @Danipulok in https://github.com/pydantic/pydantic-ai/pull/3845
* Fix duplicated tool calls with `partial_output=False` and cache result by @Danipulok in https://github.com/pydantic/pydantic-ai/pull/3848
* Update `thoughtSignature` for Vertex Gemini 3 compatibility by @jerry-heygen in https://github.com/pydantic/pydantic-ai/pull/3882
* Fix `input_tokens` calculation for Bedrock model (#3850) by @Tshapislav in https://github.com/pydantic/pydantic-ai/pull/3853

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

**Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v1.39.0...v1.39.1