fix: formatting

This commit is contained in:
Jun Siang Cheah
2024-05-09 23:57:39 +08:00
parent fa6e21f5e0
commit 0f50c12c59
31 changed files with 292 additions and 6 deletions

View File

@@ -24,9 +24,7 @@
.filter((p) =>
(p.custom_info?.name ?? p.name).includes(prompt.split(' ')?.at(0)?.substring(1) ?? '')
)
.sort((a, b) =>
(a.custom_info?.name ?? a.name).localeCompare(b.custom_info?.name ?? b.name)
);
.sort((a, b) => (a.custom_info?.name ?? a.name).localeCompare(b.custom_info?.name ?? b.name));
$: if (prompt) {
selectedIdx = 0;

View File

@@ -1247,9 +1247,7 @@
: model.source === 'LiteLLM'
? 'LiteLLM'
: 'OpenAI'}: {model.name}{`${
model.custom_info?.name
? ' - ' + model.custom_info?.name
: ''
model.custom_info?.name ? ' - ' + model.custom_info?.name : ''
}`}</option
>
{/each}