🐛 correctly check for window being defined

This commit is contained in:
Nate Sesti 2023-12-16 08:35:34 -08:00
parent 7184d6148c
commit 0e8352cdae

View file

@ -489,6 +489,9 @@ export abstract class BaseLLM implements ILLM {
}
private _shouldRequestDirectly() {
if (typeof window === "undefined") {
return true;
}
return (window as any)?.ide !== "vscode";
}