Skip to content

Commit

Permalink
Update requirements.txt with latest OSS package with AuthV4 support (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
denverdino authored May 20, 2024
1 parent 40bc936 commit f32bba6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/core/tools/tool_file_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def create_file_by_raw(user_id: str, tenant_id: str,
"""
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,
Expand All @@ -90,7 +90,7 @@ def create_file_by_url(user_id: str, tenant_id: str,
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,
Expand Down
2 changes: 1 addition & 1 deletion api/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f32bba6

Please sign in to comment.