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

Function normalizeModelCost

packages/core/script/compare-model-migrations.ts:296–298  ·  view source on GitHub ↗
(model: z.infer<typeof AuthoredModel>)

Source from the content-addressed store, hash-verified

294}
295
296function normalizeModelCost(model: z.infer<typeof AuthoredModel>): Model {
297 return normalizeCost(model) as Model;
298}
299
300function normalizeCost(model: Record<string, unknown>) {
301 const cost = model.cost;

Callers 1

generateLegacyExtendsFunction · 0.70

Calls 1

normalizeCostFunction · 0.70

Tested by

no test coverage detected