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
892591f8
Commit
892591f8
authored
Dec 24, 2023
by
Timothy J. Baek
Browse files
feat: no text response error message
parent
ee837915
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
src/routes/(app)/+page.svelte
src/routes/(app)/+page.svelte
+7
-0
src/routes/(app)/c/[id]/+page.svelte
src/routes/(app)/c/[id]/+page.svelte
+7
-0
No files found.
src/routes/(app)/+page.svelte
View file @
892591f8
...
@@ -245,6 +245,13 @@
...
@@ -245,6 +245,13 @@
}
}
} else {
} else {
responseMessage.done = true;
responseMessage.done = true;
if (responseMessage.content == '') {
responseMessage.error = true;
responseMessage.content =
'Oops! No text generated from Ollama, Please try again.';
}
responseMessage.context = data.context ?? null;
responseMessage.context = data.context ?? null;
responseMessage.info = {
responseMessage.info = {
total_duration: data.total_duration,
total_duration: data.total_duration,
...
...
src/routes/(app)/c/[id]/+page.svelte
View file @
892591f8
...
@@ -259,6 +259,13 @@
...
@@ -259,6 +259,13 @@
}
}
} else {
} else {
responseMessage.done = true;
responseMessage.done = true;
if (responseMessage.content == '') {
responseMessage.error = true;
responseMessage.content =
'Oops! No text generated from Ollama, Please try again.';
}
responseMessage.context = data.context ?? null;
responseMessage.context = data.context ?? null;
responseMessage.info = {
responseMessage.info = {
total_duration: data.total_duration,
total_duration: data.total_duration,
...
...
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