python Pydantic AI Releases · · 2.25.0

Pydantic-AI v2.25.0: FileSearchTool collections and Azure Mistral max_tokens fix

sdkaiazureengineerpython-agentic
feature patch

Pydantic-AI v2.25.0 introduces new collections search options for xAI's FileSearchTool, enhancing data exploration capabilities. This release also addresses several bugs, including correctly sending `max_tokens` for Azure Mistral models and improving handling of malformed `base_url` and tool-call arguments. The update is available for users integrating AI tools with Python, particularly those leveraging Azure services.

  • Forward xAI FileSearchTool collections search options by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/7154
  • fix(azure): send max_tokens for Mistral models, not max_completion_tokens by @feiiiiii5 in https://github.com/pydantic/pydantic-ai/pull/6929
  • Fix thinking="minimal" for GPT-5.6 models by @daikeren in https://github.com/pydantic/pydantic-ai/pull/7082
  • Degrade malformed tool-call args in ToolCallPart.args_as_json_str() by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7092
Features (1)
  • Forward xAI FileSearchTool collections search options by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/7154
Fixes (4)
  • fix(azure): send max_tokens for Mistral models, not max_completion_tokens by @feiiiiii5 in https://github.com/pydantic/pydantic-ai/pull/6929
  • Omit server attributes for a malformed base_url port and forward base_url through WrapperModel by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7136

  • Fix thinking="minimal" for GPT-5.6 models by @daikeren in https://github.com/pydantic/pydantic-ai/pull/7082
  • Degrade malformed tool-call args in ToolCallPart.args_as_json_str() by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7092
Read the original announcement →

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

Related releases