formatModelPricing function

String formatModelPricing(
  1. ModelCosts costs
)

Format model costs as a pricing string for display. e.g., "$3/$15 per Mtok"

Implementation

String formatModelPricing(ModelCosts costs) {
  return '${_formatPrice(costs.inputTokens)}/${_formatPrice(costs.outputTokens)} per Mtok';
}