mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-10 05:39:11 +00:00
Limit access to chat models to futurist users
This commit is contained in:
@@ -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]">
|
||||||
|
|||||||
Reference in New Issue
Block a user