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
6b57d8d3
Commit
6b57d8d3
authored
May 21, 2024
by
Timothy J. Baek
Browse files
chore: format
parent
b3de6124
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
src/routes/(app)/+page.svelte
src/routes/(app)/+page.svelte
+7
-2
src/routes/(app)/c/[id]/+page.svelte
src/routes/(app)/c/[id]/+page.svelte
+1
-1
No files found.
src/routes/(app)/+page.svelte
View file @
6b57d8d3
...
...
@@ -39,7 +39,12 @@
import
Messages
from
'$lib/components/chat/Messages.svelte'
;
import
ModelSelector
from
'$lib/components/chat/ModelSelector.svelte'
;
import
Navbar
from
'$lib/components/layout/Navbar.svelte'
;
import
{
LITELLM_API_BASE_URL
,
OLLAMA_API_BASE_URL
,
OPENAI_API_BASE_URL
,
WEBUI_BASE_URL
}
from
'$lib/constants'
;
import
{
LITELLM_API_BASE_URL
,
OLLAMA_API_BASE_URL
,
OPENAI_API_BASE_URL
,
WEBUI_BASE_URL
}
from
'$lib/constants'
;
import
{
RAGTemplate
}
from
'$lib/utils/rag'
;
const
i18n
=
getContext
(
'i18n'
);
...
...
@@ -613,7 +618,7 @@
...messages
]
.filter((message) => message)
.filter((message) => message.content !=
""
)
.filter((message) => message.content !=
''
)
.map((message, idx, arr) => ({
role: message.role,
...((message.files?.filter((file) => file.type === 'image').length > 0 ?? false) &&
...
...
src/routes/(app)/c/[id]/+page.svelte
View file @
6b57d8d3
...
...
@@ -620,7 +620,7 @@
...messages
]
.filter((message) => message)
.filter((message) => message.content !=
""
)
.filter((message) => message.content !=
''
)
.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