Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
89d80b58
Commit
89d80b58
authored
May 24, 2024
by
Timothy J. Baek
Browse files
fix: presets should not be allowed as a base model
parent
83097cd8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/routes/(app)/workspace/models/create/+page.svelte
src/routes/(app)/workspace/models/create/+page.svelte
+1
-1
src/routes/(app)/workspace/models/edit/+page.svelte
src/routes/(app)/workspace/models/edit/+page.svelte
+1
-1
No files found.
src/routes/(app)/workspace/models/create/+page.svelte
View file @
89d80b58
...
@@ -290,7 +290,7 @@
...
@@ -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>
...
...
src/routes/(app)/workspace/models/edit/+page.svelte
View file @
89d80b58
...
@@ -282,7 +282,7 @@
...
@@ -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
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment