MCPcopy Index your code
hub / github.com/promptfoo/promptfoo / getStringForFetchCacheKey

Function getStringForFetchCacheKey

src/cache.ts:322–327  ·  view source on GitHub ↗
(value: string, fieldName?: string)

Source from the content-addressed store, hash-verified

320}
321
322function getStringForFetchCacheKey(value: string, fieldName?: string): unknown {
323 if (isSensitiveFetchCacheString(value, fieldName)) {
324 return fingerprintFetchCacheSecret(value);
325 }
326 return value;
327}
328
329function hasSensitiveJsonValue(value: unknown, fieldName?: string): boolean {
330 if (typeof value === 'string') {

Callers 5

getUrlForFetchCacheKeyFunction · 0.85
getHeadersForCacheKeyFunction · 0.85

Calls 2

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…