feat: Add HTTP proxy for supported LLM nodes (#15449)

This commit is contained in:
oleg
2025-05-16 12:23:26 +02:00
committed by GitHub
parent 570d1e7aad
commit 907485d016
14 changed files with 173 additions and 30 deletions

View File

@@ -0,0 +1,11 @@
import { HttpsProxyAgent } from 'https-proxy-agent';
export function getHttpProxyAgent() {
const httpProxy =
process.env.HTTPS_PROXY ??
process.env.https_proxy ??
process.env.HTTP_PROXY ??
process.env.http_proxy;
return httpProxy ? new HttpsProxyAgent(httpProxy) : undefined;
}