Skip to main content

require_budget_pricing

Function require_budget_pricing 

Source
pub fn require_budget_pricing(
    provider: &str,
    model: &str,
    max_budget_usd: Option<f64>,
) -> Result<(), Error>
Expand description

Reject a priced session budget when its selected route cannot be priced. Call before any inference, including automatic compaction.