Skip to content

Commit 15a1180

Browse files
committed
fix: Change fetchEventSource options' openWhenHidden to true by default
1 parent f3906ce commit 15a1180

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sources/gc-qa-rag-frontend/src/services/ApiService.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export const getChatResult = async (
6060
},
6161
body: requestBody,
6262
signal: controller.signal,
63+
openWhenHidden:true,
6364
async onopen(response) {
6465
if (response.ok) {
6566
return;
@@ -126,6 +127,7 @@ export const getThinkResult = async (
126127
},
127128
body: requestBody,
128129
signal: controller.signal,
130+
openWhenHidden: true,
129131
async onopen(response) {
130132
if (response.ok) {
131133
return;

0 commit comments

Comments
 (0)