mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-14 00:14:04 +09:00
Allow streaming to work in background
This commit is contained in:
@@ -398,6 +398,7 @@
|
|||||||
})
|
})
|
||||||
fetchEventSource(getApiBase() + getEndpointCompletions(), {
|
fetchEventSource(getApiBase() + getEndpointCompletions(), {
|
||||||
...fetchOptions,
|
...fetchOptions,
|
||||||
|
openWhenHidden: true,
|
||||||
onmessage (ev) {
|
onmessage (ev) {
|
||||||
// Remove updating indicator
|
// Remove updating indicator
|
||||||
updating = 1 // hide indicator, but still signal we're updating
|
updating = 1 // hide indicator, but still signal we're updating
|
||||||
|
|||||||
Reference in New Issue
Block a user