Skip to main content

cost

Function cost 

Source
pub fn cost(model: &Model, tokens: &TokenCounts) -> f64
Expand description

The cost of tokens on model: a cached read at the cache price, the rest of the input at the input price.