Skip to main content

get_model_name_with_default

Function get_model_name_with_default 

Source
pub fn get_model_name_with_default(config_model: Option<&str>) -> Option<String>
Expand description

Get the model name with an optional default from config. Used by parallel execution where full Config isn’t available.

Model names are normalized to shorthand (e.g., “claude-sonnet-4-20250514” -> “sonnet”).