Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions ui/src/components/ModelCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ export default function ModelCard(props: {
<j-text variant="heading-sm" size="600" color="primary-800">
{name}
</j-text>
{modelType === "LLM" && (
<j-flex gap="300">
<j-flex gap="300">
{modelType === "LLM" && (
<>
{model.default ? (
<j-button variant="subtle" size="sm" disabled>
Default
Expand All @@ -68,21 +69,16 @@ export default function ModelCard(props: {
Set Default
</j-button>
)}

</>
)}
<j-button variant="subtle" size="sm" onClick={editModel}>
<j-icon name="pencil-square" size="sm" />
</j-button>

<j-button variant="subtle" size="sm" onClick={removeModel}>
<j-icon name="trash" size="sm" />
</j-button>
</j-flex>
)}
{modelType == "TRANSCRIPTION" && (
<j-button variant="subtle" size="sm" onClick={editModel}>
<j-icon name="pencil-square" size="sm" />
</j-button>
)}
</j-flex>
</j-flex>
</j-box>
<j-flex direction="column" gap="400">
Expand Down