mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 09:58:04 +08:00
fix(api): resolve external knowledge API error due to excessive URL validation (#19003)
The `validators.url` method from the `validators==0.21.0` library enforces a URL length limit of less than 90 characters, which led to failures in external knowledge API requests for long URLs. This PR addresses the issue by replacing `validators.url` with `urllib.parse.urlparse`, effectively removing the restrictive URL length check. Additionally, the unused `validators` dependency has been removed. Fixes #18981. Signed-off-by: kenwoodjw <blackxin55+@gmail.com>
This commit is contained in:
@ -81,7 +81,6 @@ dependencies = [
|
||||
"tokenizers~=0.15.0",
|
||||
"transformers~=4.35.0",
|
||||
"unstructured[docx,epub,md,ppt,pptx]~=0.16.1",
|
||||
"validators==0.21.0",
|
||||
"weave~=0.51.34",
|
||||
"yarl~=1.18.3",
|
||||
"webvtt-py~=0.5.1",
|
||||
@ -196,6 +195,6 @@ vdb = [
|
||||
"tidb-vector==0.0.9",
|
||||
"upstash-vector==0.6.0",
|
||||
"volcengine-compat~=1.0.156",
|
||||
"weaviate-client~=3.21.0",
|
||||
"weaviate-client~=3.24.0",
|
||||
"xinference-client~=1.2.2",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user