calculate_costs

Function calculate_costs 

Source
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.