Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
b34ab10b
Commit
b34ab10b
authored
Jul 22, 2024
by
Clivia
Browse files
💄
Add a model image to the model selector
parent
63eda0fe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/lib/components/chat/ModelSelector/Selector.svelte
src/lib/components/chat/ModelSelector/Selector.svelte
+8
-1
No files found.
src/lib/components/chat/ModelSelector/Selector.svelte
View file @
b34ab10b
...
@@ -279,8 +279,15 @@
...
@@ -279,8 +279,15 @@
<div class="flex items-center gap-2">
<div class="flex items-center gap-2">
<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">
<img
src={item.model?.info?.meta?.profile_image_url ?? '/static/favicon.png'}
alt="Model ImageURl"
class="rounded-full w-5 h-5 flex items-center mr-2"
/>
{item.label}
{item.label}
</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 ?? '') !== ''}
<div class="flex ml-1 items-center translate-y-[0.5px]">
<div class="flex ml-1 items-center translate-y-[0.5px]">
<Tooltip
<Tooltip
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment