🐛 correctly check for window being defined
This commit is contained in:
parent
7184d6148c
commit
0e8352cdae
1 changed files with 3 additions and 0 deletions
|
|
@ -489,6 +489,9 @@ export abstract class BaseLLM implements ILLM {
|
|||
}
|
||||
|
||||
private _shouldRequestDirectly() {
|
||||
if (typeof window === "undefined") {
|
||||
return true;
|
||||
}
|
||||
return (window as any)?.ide !== "vscode";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue