Download client/src/components/Endpoints/Settings/MultiView/PluginSettings.tsx from Zhitomir/chat: direct link, hf CLI and curl.
- Browser
- Download file 804 Bytes
-
https://huggingface.co/spaces/Zhitomir/chat/resolve/main/client/src/components/Endpoints/Settings/MultiView/PluginSettings.tsx
- Command line
-
hf download hf://spaces/Zhitomir/chat/client/src/components/Endpoints/Settings/MultiView/PluginSettings.tsx
-
curl -L -o PluginSettings.tsx https://huggingface.co/spaces/Zhitomir/chat/resolve/main/client/src/components/Endpoints/Settings/MultiView/PluginSettings.tsx
804 Bytes
| import Settings from '../Plugins'; | |
| import AgentSettings from '../AgentSettings'; | |
| import { useSetIndexOptions } from '~/hooks'; | |
| import { useChatContext } from '~/Providers'; | |
| export default function PluginsView({ conversation, models, isPreset = false }) { | |
| const { showAgentSettings } = useChatContext(); | |
| const { setOption, setTools, setAgentOption, checkPluginSelection } = useSetIndexOptions( | |
| isPreset ? conversation : null, | |
| ); | |
| if (!conversation) { | |
| return null; | |
| } | |
| return showAgentSettings ? ( | |
| <AgentSettings conversation={conversation} setOption={setAgentOption} models={models} /> | |
| ) : ( | |
| <Settings | |
| conversation={conversation} | |
| setOption={setOption} | |
| setTools={setTools} | |
| checkPluginSelection={checkPluginSelection} | |
| models={models} | |
| /> | |
| ); | |
| } | |