MCPcopy Create free account
hub / github.com/braintrustdata/bash-agent-evals / getModelFromEnv

Function getModelFromEnv

src/models.ts:74–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72 * Get model from environment variable or default
73 */
74export function getModelFromEnv(): ModelId {
75 const envModel = process.env.MODEL;
76 if (envModel && isValidModelId(envModel)) {
77 return envModel;
78 }
79 return DEFAULT_MODEL;
80}
81
82/**
83 * Check if a string is a valid ModelId

Callers 7

runFsAgentFunction · 0.85
runSqlAgentFunction · 0.85
runBashAgentFunction · 0.85
runCodemodeAgentFunction · 0.85
runBashSqliteAgentFunction · 0.85
runEmbeddingAgentFunction · 0.85
shared.tsFile · 0.85

Calls 1

isValidModelIdFunction · 0.85

Tested by

no test coverage detected