Skip to content

Commit

Permalink
Fix blobs request
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Steiner <robert@flower.ai>
  • Loading branch information
Robert-Steiner committed Nov 29, 2024
1 parent d6528cf commit b796e33
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 @@ -557,7 +557,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 b796e33

Please sign in to comment.