Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix wrong method using (#6459)

Jyong57729823a081
diff --git a/api/services/dataset_service.py b/api/services/dataset_service.py
index e7af975009e..d5a54ba731c 100644
--- a/api/services/dataset_service.py
+++ b/api/services/dataset_service.py
@@ -845,7 +845,7 @@ class DocumentService:
'only_main_content': website_info.get('only_main_content', False),
'mode': 'crawl',
}
- if url.length > 255:
+ if len(url) > 255:
document_name = url[:200] + '...'
else:
document_name = url