"use client"; import { Check, ChevronsUpDown, Loader2 } from "lucide-react"; import { Button } from "./ui/button"; import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, } from "./ui/command"; import { Popover, PopoverContent, PopoverTrigger } from "./ui/popover"; import { cn } from "@/lib/utils"; interface CustomConfigProps { customLlmUrl: string; customLlmApiKey: string; customModel: string; customModels: string[]; customModelsLoading: boolean; customModelsChecked: boolean; openModelSelect: boolean; onInputChange: (value: string, field: string) => void; onOpenModelSelectChange: (open: boolean) => void; onFetchCustomModels: () => void; } export default function CustomConfig({ customLlmUrl, customLlmApiKey, customModel, customModels, customModelsLoading, customModelsChecked, openModelSelect, onInputChange, onOpenModelSelectChange, onFetchCustomModels, }: CustomConfigProps) { return ( <>
Important: Only models with function calling capabilities (tool calls) or JSON schema support will work.
No models found. Please make sure models are available.