mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-19 20:57:58 +00:00
fixed error
This commit is contained in:
parent
ec5b4bd018
commit
9eee751ccf
@ -208,8 +208,12 @@ class LLMBinding:
|
||||
ASCIIColors.red(f"UnInstalling {self.binding_folder_name}")
|
||||
ASCIIColors.blue("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*")
|
||||
|
||||
def searchModelParentFolder(self, model_name:str):
|
||||
def searchModelParentFolder(self, model_name:str, model_type=None):
|
||||
model_path=None
|
||||
if model_type is not None:
|
||||
for mn in self.models_folders:
|
||||
if mn.name.lower() == model_type.lower():
|
||||
return mn
|
||||
for mn in self.models_folders:
|
||||
if mn.name in model_name.lower():
|
||||
model_path = mn
|
||||
|
Loading…
Reference in New Issue
Block a user