import { EModelEndpoint } from 'librechat-data-provider'; import { useFormContext, Controller } from 'react-hook-form'; import InputWithLabel from './InputWithLabel'; const CustomEndpoint = ({ endpoint, userProvideURL, }: { endpoint: EModelEndpoint | string; userProvideURL?: boolean | null; }) => { const { control } = useFormContext(); return (
( )} /> {userProvideURL && ( ( )} /> )} ); }; export default CustomEndpoint;