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

Function modalities

packages/core/script/generate-ambient.ts:63–67  ·  view source on GitHub ↗
(values: string[])

Source from the content-addressed store, hash-verified

61const ALLOWED_MODALITIES = new Set(["text", "audio", "image", "video", "pdf"]);
62
63function modalities(values: string[]): string[] {
64 return values
65 .map((v) => v.toLowerCase())
66 .filter((v) => ALLOWED_MODALITIES.has(v));
67}
68
69function perMTok(price: string): number {
70 const n = parseFloat(price);

Callers 1

formatTomlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected