mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-08 05:39:13 +00:00
Show create agent button when not logged in agents page
This commit is contained in:
@@ -300,35 +300,37 @@ export default function Agents() {
|
|||||||
<div className={`pt-6 md:pt-8 flex justify-between`}>
|
<div className={`pt-6 md:pt-8 flex justify-between`}>
|
||||||
<h1 className="text-3xl flex items-center">Agents</h1>
|
<h1 className="text-3xl flex items-center">Agents</h1>
|
||||||
<div className="ml-auto float-right border p-2 pt-3 rounded-xl font-bold hover:bg-stone-100 dark:hover:bg-neutral-900">
|
<div className="ml-auto float-right border p-2 pt-3 rounded-xl font-bold hover:bg-stone-100 dark:hover:bg-neutral-900">
|
||||||
{authenticatedData && (
|
<CreateAgentCard
|
||||||
<CreateAgentCard
|
data={{
|
||||||
data={{
|
slug: "",
|
||||||
slug: "",
|
name: "",
|
||||||
name: "",
|
persona: "",
|
||||||
persona: "",
|
color: "",
|
||||||
color: "",
|
icon: "",
|
||||||
icon: "",
|
privacy_level: "private",
|
||||||
privacy_level: "private",
|
managed_by_admin: false,
|
||||||
managed_by_admin: false,
|
chat_model: "",
|
||||||
chat_model: "",
|
input_tools: [],
|
||||||
input_tools: [],
|
output_modes: [],
|
||||||
output_modes: [],
|
}}
|
||||||
}}
|
userProfile={
|
||||||
userProfile={authenticatedData}
|
authenticationLoading
|
||||||
isMobileWidth={isMobileWidth}
|
? null
|
||||||
filesOptions={filesData || []}
|
: (authenticatedData ?? null)
|
||||||
modelOptions={userConfig?.chat_model_options || []}
|
}
|
||||||
selectedChatModelOption={defaultModelOption?.name || ""}
|
isMobileWidth={isMobileWidth}
|
||||||
isSubscribed={isSubscribed}
|
filesOptions={filesData || []}
|
||||||
setAgentChangeTriggered={setAgentChangeTriggered}
|
modelOptions={userConfig?.chat_model_options || []}
|
||||||
inputToolOptions={
|
selectedChatModelOption={defaultModelOption?.name || ""}
|
||||||
agentConfigurationOptions?.input_tools || {}
|
isSubscribed={isSubscribed}
|
||||||
}
|
setAgentChangeTriggered={setAgentChangeTriggered}
|
||||||
outputModeOptions={
|
inputToolOptions={
|
||||||
agentConfigurationOptions?.output_modes || {}
|
agentConfigurationOptions?.input_tools || {}
|
||||||
}
|
}
|
||||||
/>
|
outputModeOptions={
|
||||||
)}
|
agentConfigurationOptions?.output_modes || {}
|
||||||
|
}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{showLoginPrompt && (
|
{showLoginPrompt && (
|
||||||
|
|||||||
Reference in New Issue
Block a user