fix(tui): clean model inventory fallback

Use eager fallback selection in the model inventory default-model resolver so the TUI clippy gate remains warning-clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hunter B
2026-06-13 13:01:31 -07:00
parent 2de967c858
commit 262f535eb9
+1 -1
View File
@@ -177,7 +177,7 @@ fn provider_default_model(config: &Config, provider: ApiProvider) -> String {
model_completion_names_for_provider(provider)
.first()
.copied()
.unwrap_or_else(|| match provider {
.unwrap_or(match provider {
ApiProvider::Ollama => crate::config::DEFAULT_OLLAMA_MODEL,
ApiProvider::Sglang => crate::config::DEFAULT_SGLANG_MODEL,
ApiProvider::Vllm => crate::config::DEFAULT_VLLM_MODEL,