From e566ff321642a100756224b75a67d44e262e5bea Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 28 Aug 2025 04:45:20 +0000 Subject: [PATCH] chore(internal): update global Error reference --- src/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.ts b/src/client.ts index 78e29664a..a81b0f87f 100644 --- a/src/client.ts +++ b/src/client.ts @@ -574,7 +574,7 @@ export class OpenAI { const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError); const headersTime = Date.now(); - if (response instanceof Error) { + if (response instanceof globalThis.Error) { const retryMessage = `retrying, ${retriesRemaining} attempts remaining`; if (options.signal?.aborted) { throw new Errors.APIUserAbortError();