diff --git a/public/app/dom.js b/public/app/dom.js index 25d5128..2fd97f3 100644 --- a/public/app/dom.js +++ b/public/app/dom.js @@ -8,7 +8,6 @@ const messagesDiv = $("messages"); const modelSelect = $("model"); const modelPanel = $("modelPanel"); const modelBadgeName = $("modelBadgeName"); -const headerModelButton = $("headerModelButton"); const headerModelName = $("headerModelName"); const headerPersonaName = $("headerPersonaName"); const modelCount = $("modelCount"); @@ -164,7 +163,6 @@ export { logoutButton, messagesDiv, modelBadgeName, - headerModelButton, headerModelName, headerPersonaName, modelCount, diff --git a/public/index.html b/public/index.html index 70645b0..385abc1 100644 --- a/public/index.html +++ b/public/index.html @@ -138,7 +138,7 @@ -
+
AI model @@ -424,6 +424,6 @@ - + diff --git a/public/script.js b/public/script.js index b4d699d..f9cfbc4 100644 --- a/public/script.js +++ b/public/script.js @@ -35,7 +35,6 @@ import { manageChatMemoryBtn, managePersonaStateBtn, importWorkspaceFileInput, - headerModelButton, headerModelName, headerPersonaName, moveChatFolderBtn, @@ -117,6 +116,8 @@ import { userPersonaList } from "./app/dom.js"; +const headerModelButton = document.getElementById("headerModelButton"); + let isProcessing = false, activeChatId = null, editingPersonaId = null, editingPersonaType = "assistant", currentUsername = ""; let chatSessions = [], currentMessages = [], assistantPersonas = [], userPersonas = []; let activeUserPersonaId = null, currentSummary = null, publishedPersonaIds = new Set();