Skip to main content

initial_model

Function initial_model 

Source
pub fn initial_model(
    registry: &ModelRegistry,
    default_provider: Option<&str>,
    default_model: Option<&str>,
) -> Option<Model>
Expand description

The starting model when --model is absent: the saved default if it has credentials, else the first authenticated provider’s default model, else the first authenticated model.