mirror of
https://github.com/katanemo/plano.git
synced 2026-05-15 11:02:39 +02:00
add model_aliases to digitalocean_pricing, use model_id as key, warn on missing data at request time
This commit is contained in:
parent
bd335cd8bd
commit
a7903d9271
6 changed files with 59 additions and 20 deletions
|
|
@ -193,9 +193,7 @@ async fn init_app_state(
|
|||
let provider_model_names: std::collections::HashSet<&str> = config
|
||||
.model_providers
|
||||
.iter()
|
||||
.flat_map(|p| {
|
||||
std::iter::once(p.name.as_str()).chain(p.model.as_deref())
|
||||
})
|
||||
.flat_map(|p| std::iter::once(p.name.as_str()).chain(p.model.as_deref()))
|
||||
.collect();
|
||||
for pref in route_prefs {
|
||||
for model in &pref.models {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue