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

Function normalizeLab

packages/core/src/describe.ts:483–499  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

481}
482
483function normalizeLab(value: string) {
484 const normalized = value.toLowerCase();
485 return {
486 "x-ai": "xai",
487 "z-ai": "zai",
488 "zai-org": "zhipuai",
489 qwen: "alibaba",
490 mistralai: "mistral",
491 "meta-llama": "meta",
492 llama: "meta",
493 "moonshot-ai": "moonshotai",
494 minimaxai: "minimax",
495 "deepseek-ai": "deepseek",
496 xiaomimimo: "xiaomi",
497 "stepfun-ai": "stepfun",
498 }[normalized] ?? normalized;
499}
500
501function humanizeID(id: string) {
502 const last = id.split("/").at(-1) ?? id;

Callers 1

labIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected