mirror of
https://github.com/open-webui/open-webui
synced 2024-11-28 23:13:30 +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"
|
<option value={null} class=" placeholder:text-gray-500"
|
||||||
>{$i18n.t('Select a base model')}</option
|
>{$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>
|
<option value={model.id}>{model.name}</option>
|
||||||
{/each}
|
{/each}
|
||||||
</select>
|
</select>
|
||||||
|
@ -282,7 +282,7 @@
|
|||||||
<option value={null} class=" placeholder:text-gray-500"
|
<option value={null} class=" placeholder:text-gray-500"
|
||||||
>{$i18n.t('Select a base model')}</option
|
>{$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>
|
<option value={model.id}>{model.name}</option>
|
||||||
{/each}
|
{/each}
|
||||||
</select>
|
</select>
|
||||||
|
Loading…
Reference in New Issue
Block a user