MCPcopy Index your code
hub / github.com/anomalyco/models.dev / labID

Function labID

packages/core/src/describe.ts:477–481  ·  view source on GitHub ↗
(id: string, providerId?: string)

Source from the content-addressed store, hash-verified

475}
476
477function labID(id: string, providerId?: string) {
478 const [first] = id.split("/");
479 if (first !== undefined && first.length > 0) return normalizeLab(first);
480 if (providerId !== undefined && providerId.length > 0) return normalizeLab(providerId);
481}
482
483function normalizeLab(value: string) {
484 const normalized = value.toLowerCase();

Callers 1

describeModelFunction · 0.85

Calls 1

normalizeLabFunction · 0.85

Tested by

no test coverage detected