Skip to content

Commit

Permalink
add rag to types of allowed plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
aliasaria committed Mar 30, 2024
1 parent 0a17929 commit 35b6ba5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/renderer/components/Plugins/PluginCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Typography from '@mui/joy/Typography';
import {
ArrowRightFromLineIcon,
DownloadIcon,
FolderSearch2Icon,
GraduationCapIcon,
HelpCircleIcon,
RocketIcon,
Expand All @@ -28,6 +29,8 @@ function getIcon(type: string) {
return <RocketIcon color="#FFA732" />;
case 'exporter':
return <ArrowRightFromLineIcon color="#711DB0" />;
case 'rag':
return <FolderSearch2Icon color="skyblue" />;
default:
return null;
}
Expand Down
12 changes: 7 additions & 5 deletions src/renderer/components/Plugins/PluginGallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ export default function PluginGallery({ experimentInfo }) {
setFilters({ ...filters, type: newValue });
}}
>
{['All', 'trainer', 'evaluator', 'loader', 'exporter'].map((type) => (
<Option value={type}>
<Chip>{type}</Chip>
</Option>
))}
{['All', 'trainer', 'evaluator', 'loader', 'exporter', 'rag'].map(
(type) => (
<Option value={type}>
<Chip>{type}</Chip>
</Option>
)
)}
</Select>
</FormControl>
</>
Expand Down

0 comments on commit 35b6ba5

Please sign in to comment.