Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

set window.__LLM_MODELS__ only for vanilla JS

Forhad Hosain833acba409bf
diff --git a/packages/app/views/index.ejs b/packages/app/views/index.ejs
index aaa36e00..8e7237aa 100644
--- a/packages/app/views/index.ejs
+++ b/packages/app/views/index.ejs
@@ -58,11 +58,13 @@
<div class="overlay-secondary hidden"></div>
<div id="modal-root"></div>
+ <% if (page !== 'dev-vite-react.ejs') { %>
<script>
window.__LLM_MODELS__ = JSON.parse(
`<% if (typeof LLMModels !== 'undefined') { %><%- JSON.stringify(LLMModels) %><% } %>`,
);
</script>
+ <% } %>
<script src="/metroui/js/metro.js"></script>
<script src="https://cdn.jsdelivr.net/gh/mdbassit/Coloris@latest/dist/coloris.min.js"></script>