Skip to main content

likely_provider

Function likely_provider 

Source
pub fn likely_provider<'a>(
    model: &str,
    providers: &'a [String],
) -> Option<&'a String>
Expand description

The candidate most likely to be the model’s own vendor, used only to make the suggested pricing line useful. A provider whose id prefixes the model id, such as deepseek for deepseek-v4-flash, beats an alphabetical first pick.