Skip to content

pydantic-ai

v2.7.0 Feature

This release adds 2 notable features for engineering teams evaluating rollout.

βœ“ No known CVEs patched
Read the diff β†’ Tool health β†’ What is this tool? β†’

✓ No known CVEs patched in this version

Topics

agent-framework genai llm pydantic python

Summary

AI summary

Updates πŸ› Bug Fixes, πŸš€ Features, and fix across a mixed release.

Changes in this release

Feature Medium

Adds support for azure-responses:[model-id] shorthand syntax

Adds support for azure-responses:[model-id] shorthand syntax

Source: llm_adapter@2026-07-16

Confidence: high

β€”
Feature Medium

Adds xAI `grok-4.5` model support

Adds xAI `grok-4.5` model support

Source: llm_adapter@2026-07-16

Confidence: high

β€”
Bugfix Medium

Fixes handling of boolean JSON Schema nodes in function signature walker

Fixes handling of boolean JSON Schema nodes in function signature walker

Source: llm_adapter@2026-07-16

Confidence: high

β€”
Bugfix Medium

Preserves HTTPX event hooks in gateway component

Preserves HTTPX event hooks in gateway component

Source: llm_adapter@2026-07-16

Confidence: high

β€”
Bugfix Medium

Allows `override(model=...)` on an agent even when no model is set

Allows `override(model=...)` on an agent even when no model is set

Source: llm_adapter@2026-07-16

Confidence: high

β€”
Bugfix Medium

Disables document input for `AlibabaProvider` (Chat Completions API)

Disables document input for `AlibabaProvider` (Chat Completions API)

Source: llm_adapter@2026-07-16

Confidence: high

β€”
Full changelog

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

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track pydantic-ai

Get notified when new releases ship.

Sign up free

About pydantic-ai

AI Agent Framework, the Pydantic way

All releases β†’

Related context

Earlier breaking changes

  • v1.95.0 rename β€˜built-in tools’ to β€˜native tools’, deprecate old fields, register via capabilities=[NativeTool(...)]

Beta — feedback welcome: [email protected]