Skip to main content

load_pricing_from_yaml

Function load_pricing_from_yaml 

Source
pub fn load_pricing_from_yaml(
    path: &Path,
) -> Result<HashMap<String, ModelPricing>>
Expand description

Load pricing from a YAML file. The file should have a “models” key mapping model names to pricing structs. Returns a HashMap of model name -> ModelPricing.