Skip to content

Commit

Permalink
remove sha256 as it's already available in the digest (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
samhita-alla authored Jan 16, 2025
1 parent 89e719a commit eefe5c9
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 eefe5c9

Please sign in to comment.