mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
fix: ollama url model download issue
This commit is contained in:
@@ -1503,7 +1503,8 @@ async def download_file_stream(
|
|||||||
|
|
||||||
if done:
|
if done:
|
||||||
file.seek(0)
|
file.seek(0)
|
||||||
hashed = calculate_sha256(file)
|
chunk_size = 1024 * 1024 * 2
|
||||||
|
hashed = calculate_sha256(file, chunk_size)
|
||||||
file.seek(0)
|
file.seek(0)
|
||||||
|
|
||||||
url = f"{ollama_url}/api/blobs/sha256:{hashed}"
|
url = f"{ollama_url}/api/blobs/sha256:{hashed}"
|
||||||
|
|||||||
Reference in New Issue
Block a user