@mastra/observability 1.19.0-alpha.1 → 1.19.0-alpha.2

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.
package/dist/index.cjs CHANGED
@@ -1603,7 +1603,7 @@ function estimateCosts(args, pricingRegistry = PricingRegistry.getGlobal()) {
1603
1603
  }
1604
1604
  if (usage.outputDetails?.reasoning) {
1605
1605
  const result = estimateCostForMeter({
1606
- meter: PricingMeter.OUTPUT_REASONING_TOKENS,
1606
+ meter: pricingTier.hasMatchingMeterForUsage(PricingMeter.OUTPUT_REASONING_TOKENS) ? PricingMeter.OUTPUT_REASONING_TOKENS : PricingMeter.OUTPUT_TOKENS,
1607
1607
  tokenCount: usage.outputDetails.reasoning,
1608
1608
  ...estimateFields
1609
1609
  });