From b2db0307eb57b556117060bae306f344242714e0 Mon Sep 17 00:00:00 2001 From: stone Date: Tue, 24 Jun 2025 15:19:05 +0800 Subject: [PATCH] Add support for lowercase HTTPS_PROXY environment variable --- src/utils/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/index.ts b/src/utils/index.ts index c2d1c46..d2568d9 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -15,6 +15,8 @@ export function getOpenAICommonOptions(): ClientOptions { options.httpAgent = new HttpsProxyAgent(process.env.PROXY_URL); } else if (process.env.HTTPS_PROXY) { options.httpAgent = new HttpsProxyAgent(process.env.HTTPS_PROXY); + } else if (process.env.https_proxy) { + options.httpAgent = new HttpsProxyAgent(process.env.https_proxy); } return options; }