瀏覽代碼

Merge pull request #1573 from yanCode/fix/tab-change

fix: set openWhenHidden to be true
Yifei Zhang 1 年之前
父節點
當前提交
db29fed99a
共有 1 個文件被更改,包括 1 次插入0 次删除
  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);