From 3c123c76304052cbd9637ea2ab86c0aab2a51618 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 @@ def create_blob(self, path: Union[str, Path]) -> str: 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