MCPcopy
hub / github.com/promptfoo/promptfoo / getSafeProxyForConnectionLog

Function getSafeProxyForConnectionLog

src/util/fetch/monkeyPatchFetch.ts:52–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}
51
52function getSafeProxyForConnectionLog(): string {
53 const proxyUrl = process.env.HTTP_PROXY || process.env.HTTPS_PROXY;
54 return proxyUrl ? `or Proxy: ${sanitizeUrl(proxyUrl)}` : '';
55}
56
57/**
58 * Returns true when `url` targets the configured Promptfoo Cloud origin: the public

Callers 1

monkeyPatchFetchFunction · 0.85

Calls 1

sanitizeUrlFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…