mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-19 20:37:51 +00:00
bugfix
This commit is contained in:
parent
405f111079
commit
e3b1488b9f
10
app.py
10
app.py
@ -695,7 +695,10 @@ class LoLLMsWebUI(LoLLMsAPPI):
|
||||
self.personalities = self.process.rebuild_personalities()
|
||||
self.personality = self.personalities[self.config["active_personality_id"]]
|
||||
self.apply_settings()
|
||||
return jsonify({"status": True})
|
||||
return jsonify({"status": True,
|
||||
"personalities":self.config["personalities"],
|
||||
"active_personality_id":self.config["active_personality_id"]
|
||||
})
|
||||
else:
|
||||
pth = str(config_file).replace('\\','/')
|
||||
return jsonify({"status": False, "error":f"Personality not found @ {pth}"})
|
||||
@ -714,7 +717,10 @@ class LoLLMsWebUI(LoLLMsAPPI):
|
||||
self.personalities = self.process.rebuild_personalities()
|
||||
self.personality = self.personalities[self.config["active_personality_id"]]
|
||||
self.apply_settings()
|
||||
return jsonify({"status": True})
|
||||
return jsonify({"status": True,
|
||||
"personalities":self.config["personalities"],
|
||||
"active_personality_id":self.config["active_personality_id"]
|
||||
})
|
||||
except:
|
||||
return jsonify({"status": False, "error":"Couldn't unmount personality"})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user