ModelPricing constructor

const ModelPricing({
  1. required double inputRate,
  2. required double outputRate,
  3. double? cachedInputRate,
})

Build pricing where rates are already in USD-per-token.

Implementation

const ModelPricing({
  required this.inputRate,
  required this.outputRate,
  this.cachedInputRate,
});