Skip to content

Commit

Permalink
login for models superagi (#1310)
Browse files Browse the repository at this point in the history
  • Loading branch information
namansleeps authored Oct 5, 2023
1 parent 9361f04 commit 09d4766
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gui/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down

0 comments on commit 09d4766

Please sign in to comment.