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

Function normalizeModalities

packages/core/script/generate-wandb.ts:219–225  ·  view source on GitHub ↗
(values: string[])

Source from the content-addressed store, hash-verified

217}
218
219function normalizeModalities(values: string[]): SupportedModality[] {
220 const normalized = values
221 .map((value) => modalityMap[value.toLowerCase()])
222 .filter((value): value is SupportedModality => value !== undefined);
223
224 return [...new Set(normalized)];
225}
226
227async function loadExistingModel(filePath: string): Promise<ExistingModel | null> {
228 try {

Callers 1

mergeModelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected