Download client/src/components/SidePanel/Switcher.tsx from Zhitomir/chat: direct link, hf CLI and curl.
- Browser
- Download file 750 Bytes
-
https://huggingface.co/spaces/Zhitomir/chat/resolve/main/client/src/components/SidePanel/Switcher.tsx
- Command line
-
hf download hf://spaces/Zhitomir/chat/client/src/components/SidePanel/Switcher.tsx
-
curl -L -o Switcher.tsx https://huggingface.co/spaces/Zhitomir/chat/resolve/main/client/src/components/SidePanel/Switcher.tsx
750 Bytes
| import { isAssistantsEndpoint } from 'librechat-data-provider'; | |
| import type { SwitcherProps } from '~/common'; | |
| import { Separator } from '~/components/ui/Separator'; | |
| import AssistantSwitcher from './AssistantSwitcher'; | |
| import ModelSwitcher from './ModelSwitcher'; | |
| export default function Switcher(props: SwitcherProps) { | |
| if (isAssistantsEndpoint(props.endpoint) && props.endpointKeyProvided) { | |
| return ( | |
| <> | |
| <AssistantSwitcher {...props} /> | |
| <Separator className="bg-gray-100/50 dark:bg-gray-600" /> | |
| </> | |
| ); | |
| } else if (isAssistantsEndpoint(props.endpoint)) { | |
| return null; | |
| } | |
| return ( | |
| <> | |
| <ModelSwitcher {...props} /> | |
| <Separator className="bg-gray-100/50 dark:bg-gray-600" /> | |
| </> | |
| ); | |
| } | |