This commit is contained in:
saloui 2023-06-20 12:34:07 +02:00
parent f933ce31f6
commit b1242ed540

View File

@ -657,7 +657,21 @@ class LoLLMsAPPI():
self._current_ai_message_id=id
self._message_id = id
def load_binding(self):
try:
print("update_settings : New binding selected")
if hasattr(self,"process") and self.process.ready:
result = self.process.set_config(self.config)
if result["status"]:
ASCIIColors.success("OK")
else:
ASCIIColors.error("NOK")
except Exception as ex:
ASCIIColors.error(f"Couldn't load model.Process returned exception : {ex}")
ASCIIColors.error(f"Binding returned this exception : {ex}")
ASCIIColors.error(f"{self.config.get_model_path_infos()}")
print("Please select a valid model or install a new one from a url")
self.menu.select_model()
def load_model(self):
try:
print("update_settings : New model selected")
@ -678,7 +692,7 @@ class LoLLMsAPPI():
def load_personality(self):
try:
print("update_settings : New personality selected")
if hasattr(self,"process"):
if hasattr(self,"process") and self.process.ready:
result = self.process.set_config(self.config)
if result["status"]:
ASCIIColors.success("OK")