several bugfixes

This commit is contained in:
saloui 2023-06-21 17:39:45 +02:00
parent b8e9a8661b
commit 8149b8d4ad
4 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,6 @@ class LLMBinding:
self.config = config
self.binding_config = binding_config
self.models_folder = None
self.configuration_file_path = lollms_paths.personal_configuration_path/f"binding_{self.binding_folder_name}.yaml"
self.binding_config.config.file_path = self.configuration_file_path
@ -68,7 +67,7 @@ class LLMBinding:
Returns:
the model
"""
return self.models_folder
return None
def install(self):
"""

View File

@ -114,6 +114,7 @@ class MainMenu:
def select_model(self):
print()
print(f"{ASCIIColors.color_green}Current binding: {ASCIIColors.color_reset}{self.lollms_app.config['binding_name']}")
print(f"{ASCIIColors.color_green}Current model: {ASCIIColors.color_reset}{self.lollms_app.config['model_name']}")
models_dir:Path = (self.lollms_app.lollms_paths.personal_models_path/self.lollms_app.config['binding_name'])
models_dir.mkdir(parents=True, exist_ok=True)

View File

@ -161,7 +161,7 @@ class LoLLMsServer:
def load_model(self):
try:
self.model = ModelBuilder(self.binding).get_model()
self.active_model = ModelBuilder(self.binding).get_model()
ASCIIColors.success("Model loaded successfully")
except Exception as ex:
ASCIIColors.error(f"Couldn't load model.")

View File

@ -26,7 +26,7 @@ def get_all_files(path):
setuptools.setup(
name="lollms",
version="2.0.3",
version="2.0.5",
author="Saifeddine ALOUI",
author_email="aloui.saifeddine@gmail.com",
description="A python library for AI personality definition",