From dfd2c2f6c2fa6754e7dd9fbf405e4aa64adbc15b Mon Sep 17 00:00:00 2001
From: ParisNeo <aloui.seifeddine@gmail.com>
Date: Thu, 11 May 2023 22:45:50 +0200
Subject: [PATCH] upgraded ui

---
 backends/gpt4all/__init__.py   | 8 ++++----
 web/src/views/SettingsView.vue | 1 +
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/backends/gpt4all/__init__.py b/backends/gpt4all/__init__.py
index 2f3caf93..6b192115 100644
--- a/backends/gpt4all/__init__.py
+++ b/backends/gpt4all/__init__.py
@@ -17,12 +17,12 @@ __github__ = "https://github.com/nomic-ai/gpt4all-ui"
 __copyright__ = "Copyright 2023, "
 __license__ = "Apache 2.0"
 
-backend_name = "LLAMACPP"
+backend_name = "GPT4ALL"
 
-class LLAMACPP(GPTBackend):
+class GPT4ALL(GPTBackend):
     file_extension='*.bin'
     def __init__(self, config:dict) -> None:
-        """Builds a LLAMACPP backend
+        """Builds a GPT4ALL backend
 
         Args:
             config (dict): The configuration file
@@ -30,7 +30,7 @@ class LLAMACPP(GPTBackend):
         super().__init__(config, False)
         
         self.model = Model(
-                model_path=f"./models/llama_cpp/{self.config['model']}",
+                model_path=f"./models/gpt4all/{self.config['model']}",
                 prompt_context="", prompt_prefix="", prompt_suffix="",
                 n_ctx=self.config['ctx_size'], 
                 seed=self.config['seed'],
diff --git a/web/src/views/SettingsView.vue b/web/src/views/SettingsView.vue
index 84a8d9b8..788ebbd4 100644
--- a/web/src/views/SettingsView.vue
+++ b/web/src/views/SettingsView.vue
@@ -347,6 +347,7 @@ export default {
                 });
         },
         onSelected(model_object){
+            console.log("Selected model")
             update_setting('model', model_object.title)
         },
         // Model installation