Skip to content

Commit

Permalink
Remove name from settings
Browse files Browse the repository at this point in the history
  • Loading branch information
homanp committed Feb 12, 2024
1 parent ff6b73a commit f8528f8
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions libs/ui/app/agents/[agentId]/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ import AddTool from "./add-tool"
import Avatar from "./avatar"

const formSchema = z.object({
name: z.string().min(1, {
message: "Name is required",
}),
description: z.string().min(1, { message: "Description is required" }),
initialMessage: z.string(),
llms: z.string(),
Expand Down Expand Up @@ -86,7 +83,6 @@ export default function Settings({
const { ...form } = useForm<z.infer<typeof formSchema>>({
resolver: zodResolver(formSchema),
defaultValues: {
name: agent.name,
description: agent.description,
initialMessage: agent.initialMessage || "",
llms: agent.llms?.[0]?.llm.provider,
Expand Down Expand Up @@ -186,19 +182,6 @@ export default function Settings({
onSelect={handleUpload}
imageUrl={avatar || agent.avatar || "/logo.png"}
/>
<FormField
control={form.control}
name="name"
render={({ field }) => (
<FormItem>
<FormLabel>Name</FormLabel>
<FormControl>
<Input placeholder="E.g My agent" {...field} />
</FormControl>
<FormMessage />
</FormItem>
)}
/>
<FormField
control={form.control}
name="description"
Expand Down

0 comments on commit f8528f8

Please sign in to comment.