mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
fixed cargo fmt issues
This commit is contained in:
parent
541099474f
commit
f7a2b2ba92
1 changed files with 1 additions and 3 deletions
|
|
@ -207,9 +207,7 @@ fn fetch_google_models(api_key: &str) -> Result<Vec<String>, Box<dyn std::error:
|
|||
.filter(|m| {
|
||||
m.supported_generation_methods
|
||||
.as_ref()
|
||||
.map_or(false, |methods| {
|
||||
methods.contains(&"generateContent".to_string())
|
||||
})
|
||||
.is_some_and(|methods| methods.contains(&"generateContent".to_string()))
|
||||
})
|
||||
.map(|m| {
|
||||
// Convert "models/gemini-pro" to "google/gemini-pro"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue