v2.27.1
pydantic/pydantic-aiv2.27.1Aug 11, 2026by dsfaccini
AI Summary
Bug fixes focusing on tool span restoration, streaming response mapping, and OpenTelemetry content gating.
Key Highlights
- Restore tool spans for failed argument validation
- Fix `XaiStreamedResponse` finish_reason mapping
- Gate `RetryPromptPart` OpenTelemetry content on `include_content`
- Fix `safe_download` Host header dropping non-default port
Full Release Notes
<!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### 🐛 Bug Fixes * Restore tool spans for failed argument validation by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/6601 * Fix `XaiStreamedResponse` finish_reason mapping for streaming responses by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/6814 * Point offline web UI hosting at the self-contained chat UI build by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7349 * Allow adaptive thinking with Tool Output and forced tool choice on Anthropic by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/7200 * Gate `RetryPromptPart` OpenTelemetry content on `include_content` by @sean-kim05 in https://github.com/pydantic/pydantic-ai/pull/7357 **Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v2.27.0...v2.27.1