Skip to main content

find_initial_model

Function find_initial_model 

Source
pub fn find_initial_model(
    cli_provider: Option<&str>,
    cli_model: Option<&str>,
    scoped_models: &[Model],
    is_continuing: bool,
    settings: Option<&Settings>,
    available_models: &[Model],
) -> InitialModelResult
Expand description

Find the initial model to use based on priority:

  1. CLI args
  2. First model from scoped models
  3. Saved default from settings
  4. First available model