Skip to content

Commit

Permalink
remove sha256 as it's already available in the digest (ollama#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
samhita-alla authored and pressdarling committed Feb 1, 2025
1 parent 9bd9ba9 commit 3c123c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ollama/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3c123c7

Please sign in to comment.