Fixed for new gpt4all code

This commit is contained in:
Saifeddine ALOUI 2023-12-08 00:59:46 +01:00
parent 3b8ca253ad
commit 8b2b885e63

View File

@ -437,7 +437,7 @@ class LLMBinding:
"""
models = []
for models_folder in self.models_folders:
if models_folder.name in ["ggml","gguf"]:
if models_folder.name in ["ggml","gguf","gpt4all"]:
models+=[f.name for f in models_folder.iterdir() if f.suffix in self.supported_file_extensions or f.suffix==".reference"]
else:
models+=[f.name for f in models_folder.iterdir() if f.is_dir() and not f.stem.startswith(".") or f.suffix==".reference"]