Ver Fonte

fix: set openWhenHidden to be true

ShengYan, Zhang há 1 ano atrás
pai
commit
94a2104b55
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      app/client/platforms/openai.ts

+ 1 - 0
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);