Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/promptfoo/promptfoo
/ getDefaultPort
Function
getDefaultPort
src/constants.ts:27–29 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
25
}
26
27
export
function
getDefaultPort(): number {
28
return
getEnvInt(
'API_PORT'
, 15500);
29
}
30
31
// Maximum width for terminal outputs.
32
export
const
TERMINAL_MAX_WIDTH =
Callers
15
constants.test.ts
File · 0.90
evalSetup.test.ts
File · 0.90
view.test.ts
File · 0.90
init.test.ts
File · 0.90
setup.test.ts
File · 0.90
server.test.ts
File · 0.90
viewCommand
Function · 0.90
evalSetupCommand
Function · 0.90
redteamReportCommand
Function · 0.90
initCommand
Function · 0.90
redteamSetupCommand
Function · 0.90
main
Function · 0.90
Calls
1
getEnvInt
Function · 0.90
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…