From 09d4766228a1158a43af0abfb7c79055c30f6c69 Mon Sep 17 00:00:00 2001 From: namansleeps <122260931+namansleeps@users.noreply.github.com> Date: Thu, 5 Oct 2023 18:44:33 +0530 Subject: [PATCH] login for models superagi (#1310) --- gui/pages/_app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gui/pages/_app.js b/gui/pages/_app.js index e217870bd..126c9f247 100644 --- a/gui/pages/_app.js +++ b/gui/pages/_app.js @@ -182,7 +182,11 @@ export default function App() { useEffect(() => { if (selectedProject !== null) { - setApplicationState("AUTHENTICATED"); + const source = Cookies.get('Source') + if (source === 'models.superagi') + window.open('https://models.superagi.com/', '_self'); + else + setApplicationState("AUTHENTICATED"); } }, [selectedProject]);