fix: ollama url model download issue

This commit is contained in:
Timothy Jaeryang Baek 2025-04-24 01:26:19 +09:00
parent 2b10b378b6
commit 7baca2b483

View File

@ -1503,7 +1503,8 @@ async def download_file_stream(
if done:
file.seek(0)
hashed = calculate_sha256(file)
chunk_size = 1024 * 1024 * 2
hashed = calculate_sha256(file, chunk_size)
file.seek(0)
url = f"{ollama_url}/api/blobs/sha256:{hashed}"