mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
feat: add UI support for updating model info
This commit is contained in:
@@ -22,10 +22,10 @@
|
||||
|
||||
$: filteredModels = $models
|
||||
.filter((p) =>
|
||||
(p.custom_info?.displayName ?? p.name).includes(prompt.split(' ')?.at(0)?.substring(1) ?? '')
|
||||
(p.custom_info?.name ?? p.name).includes(prompt.split(' ')?.at(0)?.substring(1) ?? '')
|
||||
)
|
||||
.sort((a, b) =>
|
||||
(a.custom_info?.displayName ?? a.name).localeCompare(b.custom_info?.displayName ?? b.name)
|
||||
(a.custom_info?.name ?? a.name).localeCompare(b.custom_info?.name ?? b.name)
|
||||
);
|
||||
|
||||
$: if (prompt) {
|
||||
@@ -160,7 +160,7 @@
|
||||
on:focus={() => {}}
|
||||
>
|
||||
<div class=" font-medium text-black line-clamp-1">
|
||||
{model.custom_info?.displayName ?? model.name}
|
||||
{model.custom_info?.name ?? model.name}
|
||||
</div>
|
||||
|
||||
<!-- <div class=" text-xs text-gray-600 line-clamp-1">
|
||||
|
||||
Reference in New Issue
Block a user