litellm-rs 0.7.0

A high-performance AI Gateway written in Rust, providing OpenAI-compatible APIs with intelligent routing, load balancing, and enterprise features
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::CostCalculator;

#[test]
fn multimodal_cost_rejects_unpriced_static_fallback() {
    let cost = CostCalculator::calculate_multimodal_cost(
        "gemini-3.6-flash-unpriced-static-fallback-test",
        1_000,
        500,
        Some(200),
        None,
        None,
        None,
    );

    assert_eq!(cost, None);
}