pub fn calculate_costs(
model_cost: &ModelCostV2,
tokens: UsedTokens,
) -> Option<CalculatedCost>Expand description
Calculates the total cost for a model call.
Returns None if no tokens were used.
pub fn calculate_costs(
model_cost: &ModelCostV2,
tokens: UsedTokens,
) -> Option<CalculatedCost>Calculates the total cost for a model call.
Returns None if no tokens were used.