mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac: disable direct models from model editors
This commit is contained in:
parent
88a6fe3c7a
commit
8c662c65a9
1 changed files with 1 additions and 1 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue