diff --git a/src/LLMPicker.tsx b/src/LLMPicker.tsx index 88c0d0d..44fbdfe 100644 --- a/src/LLMPicker.tsx +++ b/src/LLMPicker.tsx @@ -1,20 +1,26 @@ import { + ActionIcon, + Drawer, Group, Indicator, Progress, Select, Stack, + StackProps, Tooltip, } from "@mantine/core"; import { IconRobotFace } from "@tabler/icons-react"; +import { useDisclosure } from "@mantine/hooks"; import { useMLEngine } from "./MLEngineContext"; -function LLMPicker() { +function LLMPicker(props: StackProps) { + const [opened, { open, close }] = useDisclosure(false); + const { loadingModel, activeModel, selectModel, modelList } = useMLEngine(); return ( - + - + + + {modelList && ( @@ -37,14 +45,34 @@ function LLMPicker() { data={modelList} value={activeModel} onChange={(val) => val && selectModel(val)} + placeholder="Select a model..." searchable clearable + visibleFrom="sm" /> )} {loadingModel && ( )} + + +