Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Openpanel-dev/openpanel
/ getModelLabel
Function
getModelLabel
packages/validation/src/chat.ts:171–173 ·
view source on GitHub ↗
(id: string)
Source
from the content-addressed store, hash-verified
169
}
170
171
export
function
getModelLabel(id: string): string {
172
return
CHAT_MODELS.find((m) => m.id === id)?.label ?? id;
173
}
174
175
/**
176
* Filter the whitelist to models whose provider has an API key configured.
Callers
1
ModelPicker
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected