Skip to content

Commit

Permalink
Fix blobs request
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Steiner <[email protected]>
  • Loading branch information
Robert-Steiner committed Nov 29, 2024
1 parent d6528cf commit df2ae3e
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:
break
sha256sum.update(chunk)

digest = f'sha256:{sha256sum.hexdigest()}'
digest = sha256sum.hexdigest()

with open(path, 'rb') as r:
self._request_raw('POST', f'/api/blobs/sha256:{digest}', content=r)
Expand Down

0 comments on commit df2ae3e

Please sign in to comment.