diff --git a/frontend/src/pages/WorkspaceSettings/ChatSettings/WorkspaceLLMSelection/index.jsx b/frontend/src/pages/WorkspaceSettings/ChatSettings/WorkspaceLLMSelection/index.jsx
index 16eefa05fecadb0eba5a674eb3db0d877e81647b..19e6e5daf6147ad4d215a5cc280b28c0c4aea051 100644
--- a/frontend/src/pages/WorkspaceSettings/ChatSettings/WorkspaceLLMSelection/index.jsx
+++ b/frontend/src/pages/WorkspaceSettings/ChatSettings/WorkspaceLLMSelection/index.jsx
@@ -15,6 +15,10 @@ const LLM_DEFAULT = {
   requiredConfig: [],
 };
 
+const LLMS = [LLM_DEFAULT, ...AVAILABLE_LLM_PROVIDERS].filter(
+  (llm) => !DISABLED_PROVIDERS.includes(llm.value)
+);
+
 export default function WorkspaceLLMSelection({
   settings,
   workspace,
@@ -27,9 +31,6 @@ export default function WorkspaceLLMSelection({
   const [searchQuery, setSearchQuery] = useState("");
   const [searchMenuOpen, setSearchMenuOpen] = useState(false);
   const searchInputRef = useRef(null);
-  const LLMS = [LLM_DEFAULT, ...AVAILABLE_LLM_PROVIDERS].filter(
-    (llm) => !DISABLED_PROVIDERS.includes(llm.value)
-  );
 
   function updateLLMChoice(selection) {
     setSearchQuery("");