From eefe5c9666e2fa82ab17618155dd0aae47bba8fa Mon Sep 17 00:00:00 2001 From: Samhita Alla Date: Thu, 16 Jan 2025 17:31:30 +1100 Subject: [PATCH] remove sha256 as it's already available in the digest (#420) --- ollama/_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ollama/_client.py b/ollama/_client.py index 9b2dd59..c0fccd4 100644 --- a/ollama/_client.py +++ b/ollama/_client.py @@ -554,7 +554,7 @@ class Client(BaseClient): digest = f'sha256:{sha256sum.hexdigest()}' with open(path, 'rb') as r: - self._request_raw('POST', f'/api/blobs/sha256:{digest}', content=r) + self._request_raw('POST', f'/api/blobs/{digest}', content=r) return digest