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

Function normalizeModelCost

packages/core/src/generate.ts:230–232  ·  view source on GitHub ↗
(model: z.infer<typeof AuthoredModel>)

Source from the content-addressed store, hash-verified

228}
229
230function normalizeModelCost(model: z.infer<typeof AuthoredModel>): Model {
231 return normalizeCost(model) as Model;
232}
233
234function normalizeCost(model: Record<string, unknown>) {
235 const cost = model.cost;

Callers 1

generateProvidersFunction · 0.70

Calls 1

normalizeCostFunction · 0.70

Tested by

no test coverage detected