mirror of
https://github.com/katanemo/plano.git
synced 2026-07-05 15:52:12 +02:00
removing Arch* models to be used as a default model if one is not specified
This commit is contained in:
parent
1553eb0480
commit
d253a29d38
1 changed files with 7 additions and 1 deletions
|
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue