diff --git a/lollms/binding.py b/lollms/binding.py index 14e790c..670726a 100644 --- a/lollms/binding.py +++ b/lollms/binding.py @@ -89,11 +89,15 @@ class LLMBinding: Returns: str: The path of the model. """ + if self.config.model_name is None: + return None + if self.config.model_name.endswith(".reference"): with open(str(self.lollms_paths.personal_models_path / f"{self.binding_folder_name}/{self.config.model_name}"), 'r') as f: model_path = Path(f.read()) else: model_path = Path(self.lollms_paths.personal_models_path / f"{self.binding_folder_name}/{self.config.model_name}") + return model_path diff --git a/lollms/bindings_zoo b/lollms/bindings_zoo index 4e6e0fb..ad2ed47 160000 --- a/lollms/bindings_zoo +++ b/lollms/bindings_zoo @@ -1 +1 @@ -Subproject commit 4e6e0fb8a4e021af6d727cbad1df014f20d04c8f +Subproject commit ad2ed4792de4359d422b8b08a78e3a75f09e11fe diff --git a/setup.py b/setup.py index 3596870..21c137b 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ def get_all_files(path): setuptools.setup( name="lollms", - version="2.0.17", + version="2.0.18", author="Saifeddine ALOUI", author_email="aloui.saifeddine@gmail.com", description="A python library for AI personality definition",