This commit is contained in:
saloui 2023-06-22 16:47:09 +02:00
parent 140e66fc40
commit 05cecd8635
3 changed files with 6 additions and 2 deletions

View File

@ -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

@ -1 +1 @@
Subproject commit 4e6e0fb8a4e021af6d727cbad1df014f20d04c8f
Subproject commit ad2ed4792de4359d422b8b08a78e3a75f09e11fe

View File

@ -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",