import PreLoader from "@/components/Preloader"; import useProviderEndpointAutoDiscovery from "@/hooks/useProviderEndpointAutoDiscovery"; import System from "@/models/system"; import { NVIDIA_NIM_COMMON_URLS } from "@/utils/constants"; import { useState, useEffect } from "react"; /** * This component is used to select a remote NVIDIA NIM model endpoint * This is the default component and way to connect to NVIDIA NIM * as the "managed" provider can only work in the Desktop context. */ export default function RemoteNvidiaNimOptions({ settings }) { const { autoDetecting: loading, basePath, basePathValue, handleAutoDetectClick, } = useProviderEndpointAutoDiscovery({ provider: "nvidia-nim", initialBasePath: settings?.NvidiaNimLLMBasePath, ENDPOINTS: NVIDIA_NIM_COMMON_URLS, }); return (
Enter the URL where NVIDIA NIM is running.