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
bf614068
Commit
bf614068
authored
May 22, 2024
by
Yanyutin753
Browse files
feat make stronger
parent
0cc4366f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
src/lib/components/chat/Chat.svelte
src/lib/components/chat/Chat.svelte
+2
-4
No files found.
src/lib/components/chat/Chat.svelte
View file @
bf614068
...
...
@@ -425,8 +425,7 @@
:
undefined
,
...
messages
]
.
filter
((
message
)
=>
message
)
.
filter
((
message
)
=>
message
.
content
!= '')
.
filter
((
message
)
=>
message
?.
content
?.
trim
())
.
map
((
message
,
idx
,
arr
)
=>
{
//
Prepare
the
base
message
object
const
baseMessage
=
{
...
...
@@ -686,8 +685,7 @@
: undefined,
...messages
]
.filter((message) => message)
.filter((message) => message.content != '')
.filter((message) => message?.content?.trim())
.map((message, idx, arr) => ({
role: message.role,
...((message.files?.filter((file) => file.type === 'image').length > 0 ?? false) &&
...
...
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