mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 15:38:55 +01:00
Limit access to chat models to futurist users
This commit is contained in:
parent
7a00a07398
commit
9db885b5f7
1 changed files with 13 additions and 4 deletions
|
@ -749,9 +749,20 @@ export function AgentModificationForm(props: AgentModificationFormProps) {
|
||||||
<FormItem className="space-y-1 grid gap-2">
|
<FormItem className="space-y-1 grid gap-2">
|
||||||
<FormLabel>Chat Model</FormLabel>
|
<FormLabel>Chat Model</FormLabel>
|
||||||
<FormDescription>
|
<FormDescription>
|
||||||
Which large language model should this agent use?
|
{!props.isSubscribed ? (
|
||||||
|
<p className="text-secondary-foreground">
|
||||||
|
Upgrade to the <a href="/settings">Futurist plan</a> to
|
||||||
|
access all models.
|
||||||
|
</p>
|
||||||
|
) : (
|
||||||
|
<p>Which chat model would you like to use?</p>
|
||||||
|
)}
|
||||||
</FormDescription>
|
</FormDescription>
|
||||||
<Select onValueChange={field.onChange} defaultValue={field.value}>
|
<Select
|
||||||
|
onValueChange={field.onChange}
|
||||||
|
defaultValue={field.value}
|
||||||
|
disabled={!props.isSubscribed}
|
||||||
|
>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<SelectTrigger className="text-left">
|
<SelectTrigger className="text-left">
|
||||||
<SelectValue />
|
<SelectValue />
|
||||||
|
@ -841,7 +852,6 @@ export function AgentModificationForm(props: AgentModificationFormProps) {
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem className="space-y-3">
|
<FormItem className="space-y-3">
|
||||||
<FormLabel>Color</FormLabel>
|
<FormLabel>Color</FormLabel>
|
||||||
<FormDescription>Choose a color for your agent.</FormDescription>
|
|
||||||
<Select onValueChange={field.onChange} defaultValue={field.value}>
|
<Select onValueChange={field.onChange} defaultValue={field.value}>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<SelectTrigger className="w-[200px]">
|
<SelectTrigger className="w-[200px]">
|
||||||
|
@ -876,7 +886,6 @@ export function AgentModificationForm(props: AgentModificationFormProps) {
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem className="space-y-3">
|
<FormItem className="space-y-3">
|
||||||
<FormLabel>Icon</FormLabel>
|
<FormLabel>Icon</FormLabel>
|
||||||
<FormDescription>Choose an icon for your agent.</FormDescription>
|
|
||||||
<Select onValueChange={field.onChange} defaultValue={field.value}>
|
<Select onValueChange={field.onChange} defaultValue={field.value}>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<SelectTrigger className="w-[200px]">
|
<SelectTrigger className="w-[200px]">
|
||||||
|
|
Loading…
Reference in a new issue