v1.65.0

pydantic/pydantic-aiv1.65.0Mar 3, 2026by DouweM

AI Summary

Introduces an `UploadedFile` object for file uploads to providers and adds a new Gemini model.

Key Highlights

  • Support files uploaded to providers via new `UploadedFile` object
  • Added `gemini-3.1-flash-lite-preview` model

New Features

  • UploadedFile object support
  • New Gemini model

Full Release Notes

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

## What's Changed
### 🚀 Features
* Support files uploaded to providers via new `UploadedFile` object by @mattbrandman in https://github.com/pydantic/pydantic-ai/pull/3942
* feat: add `gemini-3.1-flash-lite-preview` model by @rian-dolphin in https://github.com/pydantic/pydantic-ai/pull/4517
### 🐛 Bug Fixes
* fix: add `__reduce__` to exception classes for pickle support by @OiPunk in https://github.com/pydantic/pydantic-ai/pull/4504

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

**Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v1.64.0...v1.65.0