ModelPricing constructor

const ModelPricing({
  1. required String name,
  2. required double inputPerMillion,
  3. required double outputPerMillion,
  4. double cacheReadPerMillion = 0,
  5. double cacheWritePerMillion = 0,
  6. int maxInputTokens = 200000,
  7. int maxOutputTokens = 8192,
})

Implementation

const ModelPricing({
  required this.name,
  required this.inputPerMillion,
  required this.outputPerMillion,
  this.cacheReadPerMillion = 0,
  this.cacheWritePerMillion = 0,
  this.maxInputTokens = 200000,
  this.maxOutputTokens = 8192,
});