Skip to content

Commit 9f28dac

Browse files
authored
feat(front): add multimodal icon on model page (#1493)
1 parent 3d9f90c commit 9f28dac

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/routes/models/+page.svelte

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1010
import CarbonHelpFilled from "~icons/carbon/help-filled";
1111
import CarbonTools from "~icons/carbon/tools";
12-
12+
import CarbonImage from "~icons/carbon/image";
1313
export let data: PageData;
1414
</script>
1515

@@ -61,6 +61,14 @@
6161
<CarbonTools class="text-xxs text-purple-700 dark:text-purple-500" />
6262
</div>
6363
{/if}
64+
{#if model.multimodal}
65+
<div
66+
title="This model is multimodal and supports image inputs natively."
67+
class="ml-auto flex size-[21px] items-center justify-center rounded-lg border border-blue-700 dark:border-blue-500"
68+
>
69+
<CarbonImage class="text-xxs text-blue-700 dark:text-blue-500" />
70+
</div>
71+
{/if}
6472
{#if index === 0}
6573
<div
6674
class="rounded-full border border-gray-300 px-2 py-0.5 text-xs text-gray-500 dark:border-gray-500 dark:text-gray-400"

0 commit comments

Comments
 (0)