From 94a2104b55a71529feb852670abce83fc5175083 Mon Sep 17 00:00:00 2001 From: "ShengYan, Zhang" Date: Wed, 17 May 2023 17:20:17 +0800 Subject: [PATCH] fix: set openWhenHidden to be true --- app/client/platforms/openai.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/client/platforms/openai.ts b/app/client/platforms/openai.ts index 63587440..b6ea9750 100644 --- a/app/client/platforms/openai.ts +++ b/app/client/platforms/openai.ts @@ -126,6 +126,7 @@ export class ChatGPTApi implements LLMApi { onerror(e) { options.onError?.(e); }, + openWhenHidden: true, }); } else { const res = await fetch(chatPath, chatPayload);