@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.js CHANGED
@@ -1578,7 +1578,7 @@ function estimateCosts(args, pricingRegistry = PricingRegistry.getGlobal()) {
1578
1578
  }
1579
1579
  if (usage.outputDetails?.reasoning) {
1580
1580
  const result = estimateCostForMeter({
1581
- meter: PricingMeter.OUTPUT_REASONING_TOKENS,
1581
+ meter: pricingTier.hasMatchingMeterForUsage(PricingMeter.OUTPUT_REASONING_TOKENS) ? PricingMeter.OUTPUT_REASONING_TOKENS : PricingMeter.OUTPUT_TOKENS,
1582
1582
  tokenCount: usage.outputDetails.reasoning,
1583
1583
  ...estimateFields
1584
1584
  });