Skip to content

Commit 214c774

Browse files
committed
Fixed GGUF import
1 parent 36df28c commit 214c774

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/widgets/instances/ollama_instances.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,12 +391,12 @@ def gguf_exists(self, sha256:str) -> bool:
391391
if not self.process:
392392
self.start()
393393
try:
394-
return requests.get(
394+
return requests.head(
395395
'{}/api/blobs/sha256:{}'.format(self.properties.get('url'), sha256),
396396
headers={
397397
'Authorization': 'Bearer {}'.format(self.properties.get('api'))
398398
}
399-
).status_code != 404
399+
).status_code == 200
400400
except Exception as e:
401401
return False
402402

0 commit comments

Comments
 (0)