MCPcopy
hub / github.com/anomalyco/models.dev / normalizeDisplayName

Function normalizeDisplayName

packages/core/script/generate-digitalocean.ts:150–156  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

148};
149
150function normalizeDisplayName(raw: string): string {
151 // Strip " Input Tokens" / " Output Tokens" suffix and lowercase
152 return raw
153 .replace(/\s+(input|output)\s+tokens$/i, "")
154 .trim()
155 .toLowerCase();
156}
157
158function buildPricingMap(entries: z.infer<typeof PricingEntry>[]): Map<string, ModelPricing> {
159 const map = new Map<string, ModelPricing>();

Callers 1

buildPricingMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected