From 5892e0f0b13ccc9abfd8bf651a6e8515da0de4de Mon Sep 17 00:00:00 2001 From: Webifi Date: Thu, 8 Jun 2023 08:11:13 -0500 Subject: [PATCH] Allow streaming to work in background --- src/lib/Chat.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/Chat.svelte b/src/lib/Chat.svelte index 59288a6..fa1938e 100644 --- a/src/lib/Chat.svelte +++ b/src/lib/Chat.svelte @@ -398,6 +398,7 @@ }) fetchEventSource(getApiBase() + getEndpointCompletions(), { ...fetchOptions, + openWhenHidden: true, onmessage (ev) { // Remove updating indicator updating = 1 // hide indicator, but still signal we're updating