Commit 5b01d799 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: openai notification issue

parent 5ef478a1
...@@ -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 };
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment