repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | import Wrapper from "@/components/PageWrapper"; |
| #2 | import Sidebar from "@/containers/Sidebar"; |
| #3 | import CreateBot from "@/components/dashboard/CreateBot"; |
| #4 | import SetOpenAIKey from "@/components/dashboard/SetOpenAIKey"; |
| #5 | import PurgeChats from "@/components/dashboard/PurgeChats"; |
| #6 | import DeleteBot from "@/components/dashboard/DeleteBot"; |
| #7 | import { useEffect, useState } from "react"; |
| #8 | |
| #9 | export default function Home() { |
| #10 | const [isKeyPresent, setIsKeyPresent] = useState(false); |
| #11 | |
| #12 | useEffect(() => { |
| #13 | fetch("/api/check_key") |
| #14 | .then((response) => response.json()) |
| #15 | .then((data) => { |
| #16 | if (data.status === "ok") { |
| #17 | setIsKeyPresent(true); |
| #18 | } |
| #19 | }); |
| #20 | }, []); |
| #21 | |
| #22 | return ( |
| #23 | <> |
| #24 | <Sidebar /> |
| #25 | <Wrapper> |
| #26 | <div className="text-center"> |
| #27 | <h1 className="mb-4 text-4xl font-extrabold leading-none tracking-tight text-gray-900 md:text-5xl"> |
| #28 | Welcome to Embedchain Playground |
| #29 | </h1> |
| #30 | <p className="mb-6 text-lg font-normal text-gray-500 lg:text-xl"> |
| #31 | Embedchain is a Data Platform for LLMs - Load, index, retrieve, and sync any unstructured data |
| #32 | dataset |
| #33 | </p> |
| #34 | </div> |
| #35 | <div |
| #36 | className={`pt-6 gap-y-4 gap-x-8 ${ |
| #37 | isKeyPresent ? "grid lg:grid-cols-2" : "w-[50%] mx-auto" |
| #38 | }`} |
| #39 | > |
| #40 | <SetOpenAIKey setIsKeyPresent={setIsKeyPresent} /> |
| #41 | {isKeyPresent && ( |
| #42 | <> |
| #43 | <CreateBot /> |
| #44 | <DeleteBot /> |
| #45 | <PurgeChats /> |
| #46 | </> |
| #47 | )} |
| #48 | </div> |
| #49 | </Wrapper> |
| #50 | </> |
| #51 | ); |
| #52 | } |
| #53 |