v1.106.0

pydantic/pydantic-aiv1.106.0Jun 5, 2026by dsfaccini

AI Summary

This release adds configuration options for the xAI provider and fixes bugs related to data URI handling and incomplete streamed responses.

Key Highlights

  • Added `api_host` and `timeout` configuration to the `XaiProvider`.
  • Fixed incomplete streamed responses when `event_stream_handler` doesn't consume the stream.
  • Fixed `from_data_uri` crashes on valid non-base64 data URIs.

New Features

  • Map base `seed` setting to xAI
  • Add `api_host` and `timeout` to `XaiProvider`

Full Release Notes

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

## What's Changed
### 🚀 Features
* Map base `seed` setting to xAI by @colesmcintosh in https://github.com/pydantic/pydantic-ai/pull/5741
* Add `api_host` and `timeout` to `XaiProvider` by @colesmcintosh in https://github.com/pydantic/pydantic-ai/pull/5742
### 🐛 Bug Fixes
* Fix incomplete streamed response when `event_stream_handler` doesn't consume the stream by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/5771
* fix(messages): from_data_uri crashes on a valid non-base64 data URI by @devteamaegis in https://github.com/pydantic/pydantic-ai/pull/5779

## New Contributors
* @lonelyhty made their first contribution in https://github.com/pydantic/pydantic-ai/pull/5759
* @devteamaegis made their first contribution in https://github.com/pydantic/pydantic-ai/pull/5779

**Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v1.105.0...v1.106.0