v0.12.1
Changed
- Widen the
pydantic-ai-slimdependency constraint from>=1.0,<2to
>=1.0,<3(core plus theanthropic/openai/googleprovider extras),
so the package installs against Pydantic-AI 2.x. Verified against
pydantic-ai-slim2.6.0. The 1.x line remains supported. - Widen the
[spec-tools]extra'sdjangorestframework-pydantic-aipin to
>=0.2,<0.4(was<0.3— stale; the backing package is at 0.3.x) and the
[drf-mcp]extra'sdjangorestframework-mcp-serverpin to>=0.9,<0.12
(was<0.11). Together these let a project resolvepydantic-ai-slim2.x
through the optional bridges without back-tracking to the 1.x line.
Notes on Pydantic-AI 2.x
build_model delegates provider-prefix → model-class resolution to Pydantic-AI
(there is no hand-maintained table), so it inherits these 2.x vocabulary
changes for projects that install pydantic-ai-slim>=2:
- The bare
openai:prefix now builds anOpenAIResponsesModel(the Responses
API) rather than anOpenAIChatModel. Useopenai-chat:for the Chat
Completions model. - Bare model names no longer infer a provider —
claude-sonnet-4-5(no
provider:prefix) previously resolved to Anthropic; it now raises
ImproperlyConfiguredpointing at thePROVIDERsetting. Pass an explicit
provider:namestring. - The
google-gla:andgoogle-vertex:provider prefixes were removed
upstream; onlygoogle:remains (ourgemini:→google:alias is
unaffected).