Merge pull request #67 from stonega/main

This commit is contained in:
musi
2025-06-25 17:43:47 +08:00
committed by GitHub
Unverified
+2
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;
}