github pydantic/pydantic-ai v1.84.0
v1.84.0 (2026-04-16)

18 hours ago

What's Changed

🔒 Security

  • Fix exponential-time regex in Google FileSearchTool response parsing by @DouweM in #5106. This was first released in yesterday's v1.83.0. The pattern was reachable in principle from Gemini streaming responses but could not be triggered via real Gemini output in testing, so we're treating it as a hardening fix rather than a vulnerability.

🚀 Features

  • Add Claude Opus 4.7 support by @dsfaccini in #5118
  • Add stateful compaction mode to OpenAICompaction by @DouweM in #5108
  • Add OllamaModel subclass and correct Ollama capability flags to fix structured output on Ollama Cloud by @Goldokpa in #4160

🐛 Bug Fixes

  • Fix deferred tool search keyword matching by @pandego in #5014
  • Fixing parsing openai_logprobs for streamed responses by @iAmir97 in #5091
  • fix(openai): handle null text in Responses API output by @DouweM in #5124
  • Chain OpenAI Responses retries through concrete openai_previous_response_id seeds by @DouweM in #5126
  • fix: exclude resumed requests from new_messages() even with current run_id by @madanlalit in #4731

New Contributors

Full Changelog: v1.83.0...v1.84.0

Don't miss a new pydantic-ai release

NewReleases is sending notifications on new releases.