From 76336ca31687870695e78e447ca532962bbcfde4 Mon Sep 17 00:00:00 2001 From: namansleeps <122260931+namansleeps@users.noreply.github.com> Date: Thu, 5 Oct 2023 16:07:35 +0530 Subject: [PATCH] login for models superagi (#1311) --- 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 6ffe26e36..df4eb679b 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]);