mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-19 20:57:58 +00:00
several bugfixes
This commit is contained in:
parent
b8e9a8661b
commit
8149b8d4ad
@ -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):
|
||||
"""
|
||||
|
@ -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)
|
||||
|
@ -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.")
|
||||
|
Loading…
Reference in New Issue
Block a user