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

fix: set openWhenHidden to be true
This commit is contained in:
Yifei Zhang
2023-05-17 18:18:56 +08:00
committed by GitHub

View File

@@ -126,6 +126,7 @@ export class ChatGPTApi implements LLMApi {
onerror(e) { onerror(e) {
options.onError?.(e); options.onError?.(e);
}, },
openWhenHidden: true,
}); });
} else { } else {
const res = await fetch(chatPath, chatPayload); const res = await fetch(chatPath, chatPayload);