From 57e29252cb5f4b3d2e8f3f3be4194fa1cf22b51e Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Mon, 30 Jun 2025 21:12:29 -0400 Subject: [PATCH] Fix: Move fetchModelsFromEndpoints import to top level to prevent initialization error --- src/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui.js b/src/ui.js index 3475cac..96a9fa3 100644 --- a/src/ui.js +++ b/src/ui.js @@ -7,6 +7,7 @@ import { handleFileUpload, uploadFile, showProgressIndicator, hideProgressIndica import { readPageWithHermes } from './page-reader.js'; import { handleUserInput, chatHistory } from './chat.js'; import { getPageSpecificKey } from './storage.js'; +import { fetchModelsFromEndpoints } from './models.js'; // Configuration flags const USE_CUSTOM_STYLING = window.UNCLOSEAI_CUSTOM_STYLING !== false; @@ -802,7 +803,6 @@ export async function openHermesModal() { // Import necessary functions from other modules const { loadConversationHistory, saveConversationHistory, clearConversationHistory } = await import('./storage.js'); - const { fetchModelsFromEndpoints } = await import('./models.js'); const { extractWebpageContent } = await import('./content.js'); const { sendMessage } = await import('./chat.js');