diff --git a/src/lib/components/chat/ModelSelector/ModelItem.svelte b/src/lib/components/chat/ModelSelector/ModelItem.svelte index 74bda3e51..c3f5dce9e 100644 --- a/src/lib/components/chat/ModelSelector/ModelItem.svelte +++ b/src/lib/components/chat/ModelSelector/ModelItem.svelte @@ -52,171 +52,157 @@ onClick(); }} > -
- {#if $mobile && (item?.model?.tags ?? []).length > 0} -
+
+ {#if (item?.model?.tags ?? []).length > 0} +
{#each item.model?.tags.sort((a, b) => a.name.localeCompare(b.name)) as tag} -
- {tag.name} -
+ +
+ {tag.name} +
+
{/each}
{/if} +
-
-
- - Model - -
-
- {item.label} -
-
-
-
-
+ + Model +
- {#if item.model.owned_by === 'ollama'} - {#if (item.model.ollama?.details?.parameter_size ?? '') !== ''} -
- - {item.model.ollama?.details?.parameter_size ?? ''} + +
+ {item.label} +
+
+
+ +
+ {#if item.model.owned_by === 'ollama'} + {#if (item.model.ollama?.details?.parameter_size ?? '') !== ''} +
+ - -
- {/if} - {#if item.model.ollama?.expires_at && new Date(item.model.ollama?.expires_at * 1000) > new Date()} -
- -
- - - - -
-
-
- {/if} - {/if} - - - - {#if item.model?.direct} - -
- - - -
-
- {:else if item.model.connection_type === 'external'} - -
- - - - -
-
- {/if} - - {#if item.model?.info?.meta?.description} - ') - )}`} - > -
- - - -
-
- {/if} - - {#if !$mobile && (item?.model?.tags ?? []).length > 0} -
- {#each item.model?.tags.sort((a, b) => a.name.localeCompare(b.name)) as tag} - -
{item.model.ollama?.details?.parameter_size ?? ''} + +
+ {/if} + {#if item.model.ollama?.expires_at && new Date(item.model.ollama?.expires_at * 1000) > new Date()} +
+ - {tag.name} -
-
- {/each} -
- {/if} +
+ + + + +
+ +
+ {/if} + {/if} + + + + {#if item.model?.direct} + +
+ + + +
+
+ {:else if item.model.connection_type === 'external'} + +
+ + + + +
+
+ {/if} + + {#if item.model?.info?.meta?.description} + ') + )}`} + > +
+ + + +
+
+ {/if} +
-
+
{#if $user?.role === 'admin' && item.model.owned_by === 'ollama' && item.model.ollama?.expires_at && new Date(item.model.ollama?.expires_at * 1000) > new Date()}