feat: add UI support for updating model info

This commit is contained in:
Jun Siang Cheah
2024-05-09 23:49:54 +08:00
parent 0dbddebcb0
commit 02a4412dfc
16 changed files with 336 additions and 41 deletions

View File

@@ -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">