pub fn get_model_name(config: Option<&Config>) -> Option<String>Expand description
Get the model name using the following priority:
- CHANT_MODEL env var (explicit override)
- ANTHROPIC_MODEL env var (Claude CLI default)
- defaults.model in config
- Parse from
claude --versionoutput (last resort)
Model names are normalized to shorthand (e.g., “claude-sonnet-4-20250514” -> “sonnet”).