diff --git a/surfsense_web/components/shared/llm-config-form.tsx b/surfsense_web/components/shared/llm-config-form.tsx index cfeff23b6..e2e45194b 100644 --- a/surfsense_web/components/shared/llm-config-form.tsx +++ b/surfsense_web/components/shared/llm-config-form.tsx @@ -5,6 +5,7 @@ import { useAtomValue } from "jotai"; import { Bot, Check, + ChevronDown, ChevronsUpDown, Key, Loader2, @@ -19,6 +20,7 @@ import { z } from "zod"; import { defaultSystemInstructionsAtom } from "@/atoms/new-llm-config/new-llm-config-query.atoms"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; +import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible"; import { Command, CommandEmpty, @@ -101,6 +103,8 @@ export function LLMConfigForm({ defaultSystemInstructionsAtom ); const [modelComboboxOpen, setModelComboboxOpen] = useState(false); + const [advancedOpen, setAdvancedOpen] = useState(false); + const [systemInstructionsOpen, setSystemInstructionsOpen] = useState(false); const form = useForm({ resolver: zodResolver(formSchema), @@ -154,73 +158,6 @@ export function LLMConfigForm({ return (
- {/* System Instructions & Citations Section */} -
-
- - System Instructions -
- - {/* System Instructions */} - ( - -
- Instructions for the AI - {defaultInstructions && ( - - )} -
- -