MCPcopy Create free account
hub / github.com/anomalyco/models.dev / labName

Function labName

packages/web/src/render.tsx:1633–1644  ·  view source on GitHub ↗
(labId: string)

Source from the content-addressed store, hash-verified

1631}
1632
1633function labName(labId: string) {
1634 const override = LAB_NAME_OVERRIDES[labId];
1635 if (override) return override;
1636
1637 const providerName = Providers[labId]?.name;
1638 if (providerName) return providerName;
1639
1640 return labId
1641 .split("-")
1642 .map((part) => part[0]!.toUpperCase() + part.slice(1))
1643 .join(" ");
1644}
1645
1646function encodedPath(id: string) {
1647 return id.split("/").map(encodeURIComponent).join("/");

Callers 2

buildModelEntriesFunction · 0.85
buildLabEntriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected