Fixed error on config save
This commit is contained in:
parent
c283f3f1d2
commit
80aabcb805
@ -496,6 +496,7 @@ Generate a title following these rules:
|
|||||||
self.chat_list_box.rename_chat(old_chat_name, new_chat_name)
|
self.chat_list_box.rename_chat(old_chat_name, new_chat_name)
|
||||||
|
|
||||||
def save_server_config(self):
|
def save_server_config(self):
|
||||||
|
if self.ollama_instance:
|
||||||
with open(os.path.join(config_dir, "server.json"), "w+", encoding="utf-8") as f:
|
with open(os.path.join(config_dir, "server.json"), "w+", encoding="utf-8") as f:
|
||||||
data = {
|
data = {
|
||||||
'remote_url': self.ollama_instance.remote_url,
|
'remote_url': self.ollama_instance.remote_url,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user