Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/braintrustdata/bash-agent-evals
/ isValidModelId
Function
isValidModelId
src/models.ts:85–87 ·
view source on GitHub ↗
(id: string)
Source
from the content-addressed store, hash-verified
83
* Check
if
a string is a valid ModelId
84
*/
85
export
function
isValidModelId(id: string): id is ModelId {
86
return
id in MODEL_CONFIG;
87
}
88
89
/**
90
* Get all supported model IDs
Callers
1
getModelFromEnv
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected