MCPcopy
hub / github.com/promptfoo/promptfoo / getShareApiBaseUrl

Function getShareApiBaseUrl

src/constants.ts:14–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13// This is used for sharing evals.
14export function getShareApiBaseUrl(): string {
15 return getEnvString('PROMPTFOO_REMOTE_API_BASE_URL') || DEFAULT_API_BASE_URL;
16}
17
18export function getDefaultShareViewBaseUrl(): string {
19 return getEnvString('PROMPTFOO_SHARING_APP_BASE_URL', `https://promptfoo.app`);

Callers 6

constants.test.tsFile · 0.90
resolveGuardrailsApiFunction · 0.90
isSharingEnabledFunction · 0.90
getApiConfigFunction · 0.90

Calls 1

getEnvStringFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…