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
68d6e738
Commit
68d6e738
authored
Jul 08, 2024
by
Timothy J. Baek
Browse files
fix
parent
3ddd88da
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/routes/(app)/workspace/models/edit/+page.svelte
src/routes/(app)/workspace/models/edit/+page.svelte
+4
-4
No files found.
src/routes/(app)/workspace/models/edit/+page.svelte
View file @
68d6e738
...
...
@@ -459,14 +459,14 @@
class
=
"p-1 text-xs flex rounded transition"
type
=
"button"
on
:
click
={()
=>
{
if
(
info
.
meta
.
suggestion_prompts
===
null
)
{
if
(
(
info
?
.
meta
?
.
suggestion_prompts
??
null
)
===
null
)
{
info
.
meta
.
suggestion_prompts
=
[{
content
:
''
}];
}
else
{
info
.
meta
.
suggestion_prompts
=
null
;
}
}}
>
{#
if
info
.
meta
.
suggestion_prompts
===
null
}
{#
if
(
info
?
.
meta
?
.
suggestion_prompts
??
null
)
===
null
}
<
span
class
=
"ml-2 self-center"
>{$
i18n
.
t
(
'Default'
)}</
span
>
{:
else
}
<
span
class
=
"ml-2 self-center"
>{$
i18n
.
t
(
'Custom'
)}</
span
>
...
...
@@ -474,7 +474,7 @@
</
button
>
</
div
>
{#
if
info
.
meta
.
suggestion_prompts
!== null}
{#
if
(
info
?
.
meta
?
.
suggestion_prompts
??
null
)
!== null}
<
button
class
=
"p-1 px-2 text-xs flex rounded transition"
type
=
"button"
...
...
@@ -501,7 +501,7 @@
{/
if
}
</
div
>
{#
if
info
.
meta
.
suggestion_prompts
}
{#
if
info
?
.
meta
?
.
suggestion_prompts
}
<
div
class
=
"flex flex-col space-y-1 mt-2"
>
{#
if
info
.
meta
.
suggestion_prompts
.
length
>
0
}
{#
each
info
.
meta
.
suggestion_prompts
as
prompt
,
promptIdx
}
...
...
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