removing Arch* models to be used as a default model if one is not specified

This commit is contained in:
Salman Paracha 2025-11-16 19:56:53 -08:00
parent 1553eb0480
commit d253a29d38

View file

@ -40,8 +40,14 @@ pub fn get_llm_provider(
let mut rng = thread_rng(); let mut rng = thread_rng();
llm_providers llm_providers
.iter() .iter()
.filter(|(_, provider)| {
provider.model
.as_ref()
.map(|m| !m.starts_with("Arch"))
.unwrap_or(true)
})
.choose(&mut rng) .choose(&mut rng)
.expect("There should always be at least one llm provider") .expect("There should always be at least one non-Arch llm provider")
.1 .1
.clone() .clone()
} }