Add support for lowercase HTTPS_PROXY environment variable
This commit is contained in:
@@ -15,6 +15,8 @@ export function getOpenAICommonOptions(): ClientOptions {
|
|||||||
options.httpAgent = new HttpsProxyAgent(process.env.PROXY_URL);
|
options.httpAgent = new HttpsProxyAgent(process.env.PROXY_URL);
|
||||||
} else if (process.env.HTTPS_PROXY) {
|
} else if (process.env.HTTPS_PROXY) {
|
||||||
options.httpAgent = new HttpsProxyAgent(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;
|
return options;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user