pub fn infer_provider(
override_provider: Option<&str>,
model: &str,
) -> Option<Provider>Expand description
Infer a Provider from an optional override and model string.
Attempts, in order:
- Parse the override if provided.
- Parse the model into a
crate::config::models::ModelIdand return its provider. - Fall back to heuristic detection via
LLMFactory::provider_from_model.