mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-04-16 15:08:54 +00:00
bugfix
This commit is contained in:
parent
f933ce31f6
commit
b1242ed540
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user