mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-19 04:37:54 +00:00
Fixed for new gpt4all code
This commit is contained in:
parent
3b8ca253ad
commit
8b2b885e63
@ -437,7 +437,7 @@ class LLMBinding:
|
|||||||
"""
|
"""
|
||||||
models = []
|
models = []
|
||||||
for models_folder in self.models_folders:
|
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"]
|
models+=[f.name for f in models_folder.iterdir() if f.suffix in self.supported_file_extensions or f.suffix==".reference"]
|
||||||
else:
|
else:
|
||||||
models+=[f.name for f in models_folder.iterdir() if f.is_dir() and not f.stem.startswith(".") or f.suffix==".reference"]
|
models+=[f.name for f in models_folder.iterdir() if f.is_dir() and not f.stem.startswith(".") or f.suffix==".reference"]
|
||||||
|
Loading…
Reference in New Issue
Block a user