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
a07b89da
Unverified
Commit
a07b89da
authored
May 21, 2024
by
Aly Mobarak
Browse files
Updated filter to filter null message objects as well.
parent
8116b043
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/routes/(app)/c/[id]/+page.svelte
src/routes/(app)/c/[id]/+page.svelte
+1
-0
No files found.
src/routes/(app)/c/[id]/+page.svelte
View file @
a07b89da
...
...
@@ -619,6 +619,7 @@
: undefined,
...messages
]
.filter((message) => message)
.filter((message) => message.content != "")
.map((message, idx, arr) => ({
role: message.role,
...
...
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