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
5b01d799
Commit
5b01d799
authored
May 31, 2024
by
Timothy J. Baek
Browse files
fix: openai notification issue
parent
5ef478a1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
src/lib/components/chat/Chat.svelte
src/lib/components/chat/Chat.svelte
+15
-15
No files found.
src/lib/components/chat/Chat.svelte
View file @
5b01d799
...
@@ -951,6 +951,11 @@
...
@@ -951,6 +951,11 @@
messages = messages;
messages = messages;
}
}
if (autoScroll) {
scrollToBottom();
}
}
if ($settings.notificationEnabled && !document.hasFocus()) {
if ($settings.notificationEnabled && !document.hasFocus()) {
const notification = new Notification(`OpenAI ${model}`, {
const notification = new Notification(`OpenAI ${model}`, {
body: responseMessage.content,
body: responseMessage.content,
...
@@ -967,11 +972,6 @@
...
@@ -967,11 +972,6 @@
document.getElementById(`speak-button-${responseMessage.id}`)?.click();
document.getElementById(`speak-button-${responseMessage.id}`)?.click();
}
}
if (autoScroll) {
scrollToBottom();
}
}
if (lastUsage) {
if (lastUsage) {
responseMessage.info = { ...lastUsage, openai: true };
responseMessage.info = { ...lastUsage, openai: true };
}
}
...
...
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