fix: presets should not be allowed as a base model

This commit is contained in:
Timothy J. Baek 2024-05-24 22:47:44 -07:00
parent 83097cd8be
commit 89d80b58e1
2 changed files with 2 additions and 2 deletions

View File

@ -290,7 +290,7 @@
<option value={null} class=" placeholder:text-gray-500"
>{$i18n.t('Select a base model')}</option
>
{#each $models as model}
{#each $models.filter((m) => !m?.preset) as model}
<option value={model.id}>{model.name}</option>
{/each}
</select>

View File

@ -282,7 +282,7 @@
<option value={null} class=" placeholder:text-gray-500"
>{$i18n.t('Select a base model')}</option
>
{#each $models.filter((m) => m.id !== model.id) as model}
{#each $models.filter((m) => m.id !== model.id && !m?.preset) as model}
<option value={model.id}>{model.name}</option>
{/each}
</select>