Repository navigation
chore(deps): bump pydantic-ai-slim from 2.31.0 to 2.53.0 in /dify-agent - #43724
Closed
dependabot[bot] wants to merge 5 commits into
Closed
dependabot[bot] wants to merge 5 commits into
dependabot[bot] wants to merge 5 commits into
Conversation
Bumps [pydantic-ai-slim](https://github.com/pydantic/pydantic-ai) from 2.31.0 to 2.53.0. - [Release notes](https://github.com/pydantic/pydantic-ai/releases) - [Changelog](https://github.com/pydantic/pydantic-ai/blob/main/docs/changelog.md) - [Commits](pydantic/pydantic-ai@v2.31.0...v2.53.0) --- updated-dependencies: - dependency-name: pydantic-ai-slim dependency-version: 2.53.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot
Bot
force-pushed
the
dependabot/uv/dify-agent/pydantic-ai-slim-2.53.0
branch
from
October 9, 2026 10:55
ef8746b to
48d56d5
Compare
zhangx1n
previously approved these changes
Oct 15, 2026
Contributor
|
CI is red. |
6 of 9 tasks
wylswz
previously approved these changes
Oct 26, 2026
wylswz
self-requested a review
October 26, 2026 04:53
Align both Agent dependency pins and the API path-dependency lock, preserve the already-locked Pillow 13 release, fix borrowed-client lifecycle typing and stream-event OpenAPI generation, and cover interrupted-history continuation boundaries. Refs #44777
zhaohao1004
previously approved these changes
Oct 26, 2026
wylswz
enabled auto-merge
October 27, 2026 09:47
Contributor
|
The dependency has been upgraded in #45041 |
auto-merge was automatically disabled
November 2, 2026 07:45
Pull request was closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Compatibility Follow-Up
Refs #44777 (pydantic-ai-slim and Agent Pillow declaration consistency).
This PR now completes the 2.53.0 upgrade rather than changing only the Agent lockfile:
DifyApiLLMProvider._set_http_clientoverride. This provider borrows a lifespan-owned HTTP client, whereas the upstream hook is for recreating provider-owned clients; the old override also no longer matches the upstream HTTPX/HTTPX2 union signature.oneOfobjects indiscriminator.mapping, where OpenAPI requires strings. Remove only the field's generated documentation discriminator, retainingoneOfand native runtime validation. Tests cover real FastAPI OpenAPI generation, unknown event payload round-trips, and rejection of invalid event kinds.ModelRequest. Cancellation after the model response but before tool-stream processing can still leave a complete tool-call response. A realAgent.runregression test verifies untreated history rejects a fresh prompt and the fallback permits continuation without executing the abandoned tool. Update the existing cancellation/continuation test and documentation to reflect both paths; history production logic is unchanged.<13to<14to match the already-merged/locked Pillow 13.0.0 and avoid downgrading it during resolution. Pillow remains 13.0.0 and Agent pypdf remains 6.21.2; this is not a new package upgrade.Validation
Reproduced the original three test failures and one type-check error on the PR, with the same selected cases passing on main/2.31.0 before the fixes.
After the fixes, on Python 3.13:
ruff check .: passed.pyrefly check: 0 errors.uv sync --extra server --python 3.13with uv 0.13.5: passed (non-frozen resolution; declarations and lock agree).uv lock --checkfor both Agent and API: passed.The API lock's revision/default-group metadata and httpcore2 marker normalization come from regenerating it with uv 0.13.5; its pinned Git refs remain unchanged.
Upstream References
Bumps pydantic-ai-slim from 2.31.0 to 2.53.0.
Release notes
Sourced from pydantic-ai-slim's releases.
... (truncated)
Commits
b38ab5dDocument thatInlineDefsJsonSchemaTransformeronly walks object and array k...c50e223Keep the test suite passing onanthropic1.11.0,dbos3.2.0 and `google-g...453f19fFixRuntimeErrorand a leaked slot when streaming through `ConcurrencyLimit...d63315dLetGoogleRealtimeModeldeclare tools whosedictvalues are recursive mod...ce6b675Allow unschemable types in the derived TemporalActivityConfigschema (#9577)f596e4bKeep the launch-directory workspace inclai2when capability functions supp...5b5a414Fix the TOML disk sub-agent test that still expected the removed effort floor...1013241Make Logfire Temporal spans replay-safe (#7006)9da37d4Expose the message-history repair pipeline asrepair_messages(#8370)aba3e75Say native tools aren't routed to OpenAI realtime yet, rather than unsupporte...From Devin