From d253a29d386ea86869e75184be336eabce7c2e72 Mon Sep 17 00:00:00 2001 From: Salman Paracha Date: Sun, 16 Nov 2025 19:56:53 -0800 Subject: [PATCH] removing Arch* models to be used as a default model if one is not specified --- crates/common/src/routing.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/common/src/routing.rs b/crates/common/src/routing.rs index f4baf896..8813c92d 100644 --- a/crates/common/src/routing.rs +++ b/crates/common/src/routing.rs @@ -40,8 +40,14 @@ pub fn get_llm_provider( let mut rng = thread_rng(); llm_providers .iter() + .filter(|(_, provider)| { + provider.model + .as_ref() + .map(|m| !m.starts_with("Arch")) + .unwrap_or(true) + }) .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 .clone() }