Skip to main content

pricing_for

Function pricing_for 

Source
pub fn pricing_for(model: &str) -> Option<ModelPricing>
Expand description

Returns pricing for a model by looking it up in the bundled providers.toml. Returns None if the model is not listed or has no pricing field.