Releases: pydantic/pydantic-ai
Releases · pydantic/pydantic-ai
v0.0.45
v0.0.44
What's Changed
- Migrate OpenAI models away from
max_tokens
tomax_completion_tokens
by @barapa in #1206 - Add return docstring to the function description by @Kludex in #1207
- Add
model_request_parameters
attribute (containing tool definitions) to chat spans by @alexmojaki in #1177 - Use
get_running_loop
instead ofget_event_loop
by @Kludex in #1204 - Bump openai to 1.66.0 by @Kludex in #1202
- Use
pydantic-ai-slim
version on CLI instead ofpydantic-ai
by @samuelcolvin in #1213 - Drop
system
parameter fromOpenAIModel
by @Kludex in #1235 - Use provider on models inference by @Kludex in #1234
- Add cohere provider class by @hrahmadi71 in #1225
New Contributors
- @derekwsgray made their first contribution in #1227
Full Changelog: v0.0.43...v0.0.44
v0.0.43 2025-03-21
What's Changed
- Add timestamp to
SystemPromptPart
by @vricciardulli in #1154 - Recreate access token on 401 for Google Vertex provider by @Kludex in #1195
New Contributors
- @dsfaccini made their first contribution in #1181
- @vricciardulli made their first contribution in #1154
Full Changelog: v0.0.42...v0.0.43
v0.0.42 2025-03-19
What's Changed
- Add support for MCP servers by @Kludex in #1100
- Make it possible to override JSON schema generation for tools by @dmontagu in #1108
- MCP server to run Python code in a sandbox by @samuelcolvin in #1140
- change api_key check flow by @ChenghaoMou in #1164
- require 3.12 for development by @samuelcolvin in #1173
- improved MCP documentation by @samuelcolvin in #1171
- rename
MCPServerSSE
toMCPServerHTTP
and more docs by @samuelcolvin in #1176 - uprev to 0.0.42 by @samuelcolvin in #1178
New Contributors
- @ChenghaoMou made their first contribution in #1164
Full Changelog: v0.0.41...v0.0.42
v0.0.41 2025-03-17
What's Changed
- Improve generic typehints in graph.py by @dmontagu in #1139
- Fix span attributes when instrumenting FallbackModel streaming by @alexmojaki in #1147
- Add Anthropic provider classes by @hrahmadi71 in #1120
- Add Mistral provider by @Viicos in #1118
Full Changelog: v0.0.40...v0.0.41
v0.0.40 2025-03-15
What's Changed
- Update
OpenAIProvider
to use environment variable for base URL by @hrahmadi71 in #1117 - Add
AzureProvider
by @Kludex in #1091 - State persistence by @samuelcolvin in #955
InstrumentedModel
andFallbackModel
fixes by @alexmojaki in #1121- Add PDF support to Anthropic by @camilovelezr in #1123
New Contributors
- @camilovelezr made their first contribution in #1123
Full Changelog: v0.0.39...v0.0.40
v0.0.39 2025-03-13
What's Changed
- Add Groq provider classes by @hrahmadi71 in #1084
- fix: ModuleNotFoundError for mypy_boto3_bedrock_runtime by @Wh1isper in #1113
New Contributors
- @leowalker89 made their first contribution in #1095
- @Wh1isper made their first contribution in #1113
Full Changelog: v0.0.38...v0.0.39
v0.0.38 2025-03-13
What's Changed
- Fix instrumentation of FallbackModel by @alexmojaki in #1076
- Add
DocumentUrl
and support document viaBinaryContent
by @Kludex in #987
Full Changelog: v0.0.37...v0.0.38
v0.0.37 2025-03-12
What's Changed
- Add
base_url
to models, populateserver.address
andserver.port
in spans by @alexmojaki in #1074 - Add support for pre-loaded VertexAI service account info by @jerry-reevo in #1066
- Add support for specifying tool name when using decorator. by @phemmer in #1087
- Serialize bytes as base64 for JSON by @Kludex in #1089
New Contributors
- @jerry-reevo made their first contribution in #1066
- @phemmer made their first contribution in #1087
- @bllchmbrs made their first contribution in #1067
Full Changelog: v0.0.36...v0.0.37
v0.0.36 2025-03-07
What's Changed
- Update regions url and VertexAIRegion Literal by @tuxthepenguin84 in #1068
- Add support for AWS Bedrock Converse API by @Kludex in #994
New Contributors
- @tuxthepenguin84 made their first contribution in #1068
Full Changelog: v0.0.35...v0.0.36