Skip to content

Commit a24637a

Browse files
chore(internal): update global Error reference
1 parent f9e4ec3 commit a24637a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ export class OpenAI {
574574
const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError);
575575
const headersTime = Date.now();
576576

577-
if (response instanceof Error) {
577+
if (response instanceof globalThis.Error) {
578578
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
579579
if (options.signal?.aborted) {
580580
throw new Errors.APIUserAbortError();

0 commit comments

Comments
 (0)