v2.7.0

pydantic/pydantic-aiv2.7.0Jul 9, 2026by dsfaccini

AI Summary

This release introduces support for new AI model integrations, including an Azure shorthand syntax and the xAI Grok-4.5 model, alongside several bug fixes for JSON schema handling and HTTP event hooks.

Key Highlights

  • Support for azure-responses:[model-id] shorthand syntax
  • Added xAI Grok-4.5 model support
  • Fixed handling of boolean JSON Schema nodes in function signature walking
  • Preserved HTTPX event hooks in the gateway

New Features

  • Support for azure-responses:[model-id] shorthand
  • Add xAI grok-4.5 model

Full Release Notes

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

## What's Changed
### 🚀 Features
* Support azure-responses:[model-id] shorthand by @hramezani in https://github.com/pydantic/pydantic-ai/pull/6355
* Add xAI `grok-4.5` model by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/6362
### 🐛 Bug Fixes
* fix: handle boolean JSON Schema nodes in function signature walker by @hramezani in https://github.com/pydantic/pydantic-ai/pull/6314
* fix(gateway): preserve HTTPX event hooks by @VectorPeak in https://github.com/pydantic/pydantic-ai/pull/6327
* Allow `override(model=...)` on an agent with no model set by @hramezani in https://github.com/pydantic/pydantic-ai/pull/6357
* Disable document input for `AlibabaProvider` (Chat Completions API) by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/5727

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

**Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v2.6.0...v2.7.0