python Pydantic AI Releases · · 2.7.0

pydantic-ai v2.7.0: Azure shorthand, Grok-4.5 model, and bug fixes

sdkaiazureengineerpython-agentic
feature patch

Version 2.7.0 of pydantic-ai introduces support for the Azure-responses model ID shorthand and adds the xAI grok-4.5 model. It also includes several bug fixes, such as improved handling of boolean JSON Schema nodes and preservation of HTTPX event hooks. This release is relevant for developers using pydantic-ai with Azure and other AI providers.

  • 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
  • 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
Features (2)
  • 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
Fixes (4)
  • 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
Read the original announcement →

https://github.com/pydantic/pydantic-ai/releases/tag/v2.7.0

Related releases