mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 21:29:08 +00:00
Make custom agent creation flow available to everyone
- For private agents, add guardrails to prevent against any misuse or violation of terms of service.
This commit is contained in:
@@ -526,7 +526,7 @@ export function AgentModificationForm(props: AgentModificationFormProps) {
|
||||
const [allFileOptions, setAllFileOptions] = useState<string[]>([]);
|
||||
const [currentStep, setCurrentStep] = useState(0);
|
||||
|
||||
const [showSubscribeDialog, setShowSubscribeDialog] = useState(true);
|
||||
const [showSubscribeDialog, setShowSubscribeDialog] = useState(false);
|
||||
|
||||
const privacyOptions = ["public", "private", "protected"];
|
||||
|
||||
@@ -684,7 +684,7 @@ export function AgentModificationForm(props: AgentModificationFormProps) {
|
||||
}
|
||||
};
|
||||
|
||||
if (!props.isSubscribed && showSubscribeDialog) {
|
||||
if (showSubscribeDialog) {
|
||||
return (
|
||||
<AlertDialog open={true}>
|
||||
<AlertDialogContent>
|
||||
@@ -1271,7 +1271,7 @@ export function AgentModificationForm(props: AgentModificationFormProps) {
|
||||
<Button
|
||||
type="submit"
|
||||
variant={"outline"}
|
||||
disabled={isSaving || !props.isSubscribed}
|
||||
disabled={isSaving}
|
||||
className={`items-center ${isSaving ? "bg-stone-100 dark:bg-neutral-900" : ""} text-white ${colorOptionClassName}`}
|
||||
>
|
||||
<FloppyDisk className="h-4 w-4 mr-2" />
|
||||
|
||||
@@ -14,7 +14,7 @@ export const metadata: Metadata = {
|
||||
manifest: "/static/khoj.webmanifest",
|
||||
openGraph: {
|
||||
siteName: "Khoj AI",
|
||||
title: "Khoj AI - Home",
|
||||
title: "Khoj AI",
|
||||
description: "Your Second Brain.",
|
||||
url: "https://app.khoj.dev",
|
||||
type: "website",
|
||||
|
||||
Reference in New Issue
Block a user