add model_aliases to digitalocean_pricing, use model_id as key, warn on missing data at request time

This commit is contained in:
Adil Hafeez 2026-03-27 17:32:15 -07:00
parent bd335cd8bd
commit a7903d9271
6 changed files with 59 additions and 20 deletions

View file

@ -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 {