MCPcopy Create free account
hub / github.com/cursor/cookbook / formatModelLabel

Function formatModelLabel

sdk/coding-agent-cli/src/agent.ts:248–251  ·  view source on GitHub ↗
(model: ModelSelection)

Source from the content-addressed store, hash-verified

246}
247
248export function formatModelLabel(model: ModelSelection) {
249 const params = model.params?.map((param) => param.value).filter(Boolean)
250 return params?.length ? `${model.id} (${params.join(", ")})` : model.id
251}
252
253export function formatDuration(ms: number) {
254 if (ms < 1000) {

Callers 1

AppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected