Fixed error on config save

This commit is contained in:
jeffser 2024-09-04 15:16:46 -06:00
parent c283f3f1d2
commit 80aabcb805

View File

@ -496,6 +496,7 @@ Generate a title following these rules:
self.chat_list_box.rename_chat(old_chat_name, new_chat_name)
def save_server_config(self):
if self.ollama_instance:
with open(os.path.join(config_dir, "server.json"), "w+", encoding="utf-8") as f:
data = {
'remote_url': self.ollama_instance.remote_url,