mirror of
https://github.com/open-webui/computer.git
synced 2026-11-26 23:29:25 -05:00
refac
This commit is contained in:
1 parent
8de0fcee14
commit
a7bce2db5b
20 files changed
+239
-222
No files matched your search
@@ -118,7 +118,7 @@ async def send_file(request: Request, path: str, *, download: bool = False):
|
||||
)
|
||||
|
||||
try:
|
||||
result = await Runtime.stream_file(identity, path)
|
||||
result = await Runtime.stream_file(request, path)
|
||||
except FileError as exc:
|
||||
raise HTTPException(status_code=exc.status_code, detail=str(exc)) from exc
|
||||
headers = {"Content-Length": str(result["size"])}
|
||||
|
||||
Reference in new issue
Block a user