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
- Pydantic-AI v2.29.0 Adds Azure AI Voice Live Support and FastMCP 4 Pydantic AI Releases ·
- Pydantic-AI v1.107.4 Addresses High-Severity Web UI Vulnerability Pydantic AI Releases ·
- Pydantic AI v1.107.3 Patches High-Severity Web Chat UI Vulnerability Pydantic AI Releases ·
- Pydantic-AI v2.28.0 Patches High-Severity Security Flaw, Adds Realtime Speech-to-Speech Pydantic AI Releases ·
- crewAI 1.15.15 Release Adds AI Flow Reporting, Fixes Bugs CrewAI Releases ·
- LangGraph 1.2.11 Adds Trace Policy to Nodes, Updates Checkpoints LangGraph Releases ·