Skip to content

Commit eefe5c9

Browse files
authored
remove sha256 as it's already available in the digest (#420)
1 parent 89e719a commit eefe5c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ollama/_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ def create_blob(self, path: Union[str, Path]) -> str:
554554
digest = f'sha256:{sha256sum.hexdigest()}'
555555

556556
with open(path, 'rb') as r:
557-
self._request_raw('POST', f'/api/blobs/sha256:{digest}', content=r)
557+
self._request_raw('POST', f'/api/blobs/{digest}', content=r)
558558

559559
return digest
560560

0 commit comments

Comments
 (0)