From 34a0529b88094a96c0449e51c87634d2ea5a72c4 Mon Sep 17 00:00:00 2001 From: QuantumGhost Date: Wed, 6 May 2026 16:32:20 +0800 Subject: [PATCH] fix(api): fix File deserialization error Replace graphon dependencies with a temporary branch containing relevant fix. Fix #35703 --- api/pyproject.toml | 3 +-- api/uv.lock | 8 ++------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/api/pyproject.toml b/api/pyproject.toml index f47a389f31..f80fc5a8f9 100644 --- a/api/pyproject.toml +++ b/api/pyproject.toml @@ -22,7 +22,6 @@ dependencies = [ "redis[hiredis]>=7.4.0", "sendgrid>=6.12.5", "sseclient-py>=1.8.0", - # Stable: production-proven, cap below the next major "aliyun-log-python-sdk>=0.9.44,<1.0.0", "azure-identity>=1.25.3,<2.0.0", @@ -42,7 +41,6 @@ dependencies = [ "opentelemetry-propagator-b3>=1.41.1,<2.0.0", "readabilipy>=0.3.0,<1.0.0", "resend>=2.27.0,<3.0.0", - # Emerging: newer and fast-moving, use compatible pins "fastopenapi[flask]~=0.7.0", "graphon~=0.2.2", @@ -98,6 +96,7 @@ dify-trace-mlflow = { workspace = true } dify-trace-opik = { workspace = true } dify-trace-tencent = { workspace = true } dify-trace-weave = { workspace = true } +graphon = { git = "https://github.com/langgenius/graphon", branch = "fix/file-serde-backport-0.2.2" } [tool.uv] default-groups = ["storage", "tools", "vdb-all", "trace-all"] diff --git a/api/uv.lock b/api/uv.lock index aacca7f4ab..6791c8c1c0 100644 --- a/api/uv.lock +++ b/api/uv.lock @@ -1594,7 +1594,7 @@ requires-dist = [ { name = "gmpy2", specifier = ">=2.3.0" }, { name = "google-api-python-client", specifier = ">=2.194.0" }, { name = "google-cloud-aiplatform", specifier = ">=1.148.1,<2.0.0" }, - { name = "graphon", specifier = "~=0.2.2" }, + { name = "graphon", git = "https://github.com/langgenius/graphon?branch=fix%2Ffile-serde-backport-0.2.2" }, { name = "gunicorn", specifier = ">=25.3.0" }, { name = "httpx", extras = ["socks"], specifier = ">=0.28.1,<1.0.0" }, { name = "httpx-sse", specifier = "~=0.4.0" }, @@ -2938,7 +2938,7 @@ httpx = [ [[package]] name = "graphon" version = "0.2.2" -source = { registry = "https://pypi.org/simple" } +source = { git = "https://github.com/langgenius/graphon?branch=fix%2Ffile-serde-backport-0.2.2#17e800fc3f8f8e282409ac1f1f784741306405a2" } dependencies = [ { name = "charset-normalizer" }, { name = "httpx" }, @@ -2958,10 +2958,6 @@ dependencies = [ { name = "unstructured", extra = ["docx", "epub", "md", "ppt", "pptx"] }, { name = "webvtt-py" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/08/50/e745a79c5f742f88f6011a1f7c9ba2c2f9cc1beedd982f0b192f1ab8c748/graphon-0.2.2.tar.gz", hash = "sha256:141f0de536171850f1af6f738dc66f0285aadd3c097f1dad2a038636789e0aa5", size = 236360, upload-time = "2026-04-17T08:52:28.047Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/de/89/a6340afdaf5169d17a318e00fc685fb67ed99baa602c2cbbbf6af6a76096/graphon-0.2.2-py3-none-any.whl", hash = "sha256:754e544d08779138f99eac6547ab08559463680e2c76488b05e1c978210392b4", size = 340808, upload-time = "2026-04-17T08:52:26.5Z" }, -] [[package]] name = "graphql-core"