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.

Update requirements.txt with latest OSS package with AuthV4 support (#4425)

Li Yif32bba653100
diff --git a/api/core/tools/tool_file_manager.py b/api/core/tools/tool_file_manager.py
index e21a2efeddb..8fc71f4711f 100644
--- a/api/core/tools/tool_file_manager.py
+++ b/api/core/tools/tool_file_manager.py
@@ -65,7 +65,7 @@ class ToolFileManager:
"""
extension = guess_extension(mimetype) or '.bin'
unique_name = uuid4().hex
- filename = f"/tools/{tenant_id}/{unique_name}{extension}"
+ filename = f"tools/{tenant_id}/{unique_name}{extension}"
storage.save(filename, file_binary)
tool_file = ToolFile(user_id=user_id, tenant_id=tenant_id,
@@ -90,7 +90,7 @@ class ToolFileManager:
mimetype = guess_type(file_url)[0] or 'octet/stream'
extension = guess_extension(mimetype) or '.bin'
unique_name = uuid4().hex
- filename = f"/tools/{tenant_id}/{unique_name}{extension}"
+ filename = f"tools/{tenant_id}/{unique_name}{extension}"
storage.save(filename, blob)
tool_file = ToolFile(user_id=user_id, tenant_id=tenant_id,
diff --git a/api/requirements.txt b/api/requirements.txt
index 13b7d96dd40..c9e9c2fa29c 100644
--- a/api/requirements.txt
+++ b/api/requirements.txt
@@ -82,5 +82,5 @@ xlrd~=2.0.1
pydantic~=1.10.0
pgvecto-rs==0.1.4
firecrawl-py==0.0.5
-oss2==2.15.0
+oss2==2.18.5
pgvector==0.2.5