Просмотр исходного кода

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

fix: set openWhenHidden to be true
Yifei Zhang 1 год назад
Родитель
Сommit
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);