mirror of
https://github.com/open-webui/open-webui
synced 2024-11-24 21:13:59 +00:00
fix: presets should not be allowed as a base model
This commit is contained in:
parent
83097cd8be
commit
89d80b58e1
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user