refac: disable direct models from model editors

This commit is contained in:
Timothy Jaeryang Baek 2025-09-29 22:59:28 -05:00
parent 88a6fe3c7a
commit 8c662c65a9

View file

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