mirror of
https://github.com/open-webui/open-webui
synced 2024-11-22 08:07:55 +00:00
enh: model id tooltip in selector
This commit is contained in:
parent
6ba2c84c65
commit
e2d20896b6
@ -320,12 +320,17 @@
|
|||||||
<div class="flex items-center min-w-fit">
|
<div class="flex items-center min-w-fit">
|
||||||
<div class="line-clamp-1">
|
<div class="line-clamp-1">
|
||||||
<div class="flex items-center min-w-fit">
|
<div class="flex items-center min-w-fit">
|
||||||
|
<Tooltip
|
||||||
|
content={$user?.role === 'admin' ? (item?.value ?? '') : ''}
|
||||||
|
placement="top-start"
|
||||||
|
>
|
||||||
<img
|
<img
|
||||||
src={item.model?.info?.meta?.profile_image_url ?? '/static/favicon.png'}
|
src={item.model?.info?.meta?.profile_image_url ?? '/static/favicon.png'}
|
||||||
alt="Model"
|
alt="Model"
|
||||||
class="rounded-full size-5 flex items-center mr-2"
|
class="rounded-full size-5 flex items-center mr-2"
|
||||||
/>
|
/>
|
||||||
{item.label}
|
{item.label}
|
||||||
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{#if item.model.owned_by === 'ollama' && (item.model.ollama?.details?.parameter_size ?? '') !== ''}
|
{#if item.model.owned_by === 'ollama' && (item.model.ollama?.details?.parameter_size ?? '') !== ''}
|
||||||
|
Loading…
Reference in New Issue
Block a user