mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-20 21:23:17 +00:00
Fixed for new gpt4all code
This commit is contained in:
parent
3b8ca253ad
commit
8b2b885e63
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user