@broberg/ai-sdk 0.41.0 → 0.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -275,12 +275,12 @@ function ensureMedia() {
275
275
  model,
276
276
  unit: p.unit,
277
277
  usd: p.usd,
278
- ...p.unit === "per_sec" ? { perSec: p.usd } : {},
279
- ...p.unit === "per_image" ? { perImage: p.usd } : {},
280
278
  checkedAt: p.checkedAt,
281
279
  region: regionForProvider(provider),
282
280
  source: "curated"
283
281
  };
282
+ if (row.unit === "per_sec") row.perSec = row.usd;
283
+ if (row.unit === "per_image") row.perImage = row.usd;
284
284
  if (!m.has(model.toLowerCase())) m.set(model.toLowerCase(), row);
285
285
  m.set(key.toLowerCase(), row);
286
286
  }
@@ -461,4 +461,4 @@ export {
461
461
  warnIfPricingStale,
462
462
  resetPricingWarningForTests
463
463
  };
464
- //# sourceMappingURL=chunk-B74RSBT5.js.map
464
+ //# sourceMappingURL=chunk-OWXXPBKN.js.map