Skip to main content

infer_provider_from_model

Function infer_provider_from_model 

Source
pub(super) fn infer_provider_from_model(model: &str) -> String
Expand description

Infer a provider slug from a model name prefix. Only maps prefixes that correspond to a registered provider slug. Callers must still validate the result via providers::get_provider.