Add support for lowercase HTTPS_PROXY environment variable

This commit is contained in:
stone
2025-06-24 15:19:05 +08:00
parent 391cbd8334
commit b2db0307eb

View File

@@ -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;
}