🚀 Pydantic AI V2 Beta 4 is here!
For more information on Pydantic AI V2, see the Upgrade Guide.
Beta 4 turns the V1 deprecation warning for prepare-callback None returns into a hard TypeError, and pulls in two V1 releases on top — v1.103.0 and v1.104.0:
What's Changed
🚀 Features
- Add
list_promptsandget_promptfunctionality toMcpServerby @bdore in #3889 - Round-trip message timestamps through
VercelAIAdapter'sUIMessage.metadataby @Genmin in #5279 - Support
anthropic_eager_input_streaminginOpenRouterModelby @Alex-Resch in #5656 - Drop
Nonereturns from tool prepare callbacks by @adtyavrdhn in #5668 - Add Claude Opus 4.8 support by @dsfaccini in #5709
🐛 Bug Fixes
- fix(bedrock): map
malformed_model_outputandmalformed_tool_usetoFinishReason.errorby @kuishou68 in #5640 - fix(bedrock): recognize
type='adaptive'in_is_thinking_enabledby @sevakva in #5651 - fix(ui): Strip
force_downloadflag from client-submittedFileUrlparts inUIAdapter.sanitize_messagesby @colesmcintosh in #5571 - fix(toolsets): warn when prepare callbacks return
Noneby @dfm88 in #5188 - Forward
thinking=Falseon hybrid OpenRouter/xAI/Bedrock routes, aligning silent-drop with direct routes by @sarth6 in #5433 - Fix Bedrock single-tool
tool_choicecache preservation by @dsfaccini in #5674
New Contributors
- @ejentum made their first contribution in #5594
- @kuishou68 made their first contribution in #5640
- @sevakva made their first contribution in #5651
- @bdore made their first contribution in #3889
- @Genmin made their first contribution in #5279
- @aryanmotgi made their first contribution in #5667
- @dfm88 made their first contribution in #5188
Full Changelog: v2.0.0b3...v2.0.0b4