mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-01 08:38:35 +00:00
More precise condition
This commit is contained in:
committed by
Richard Guo
parent
e3bdc8fc87
commit
84201784b5
@@ -73,7 +73,7 @@ class GPT4All():
|
||||
"""
|
||||
|
||||
model_filename = model_name
|
||||
if ".bin" not in model_filename:
|
||||
if not model_filename.endswith(".bin"):
|
||||
model_filename += ".bin"
|
||||
|
||||
# Validate download directory
|
||||
|
Reference in New Issue
Block a user