Skip to content

ccusage / debug

debug ​

Fileoverview ​

Debug utilities for cost calculation validation

This module provides debugging tools for detecting mismatches between pre-calculated costs and calculated costs based on token usage and model pricing.

Functions ​

FunctionDescription
detectMismatchesAnalyzes usage data to detect pricing mismatches between stored and calculated costs Compares pre-calculated costUSD values with costs calculated from token usage
printMismatchReportPrints a detailed report of pricing mismatches to the console

Released under the MIT License.