Files
hermes-webui/api
Kim Pedersen fd7666d5eb fix: empty dict/list falls through to model field for provider card
Greptile identified a real inconsistency (P1): when models is an empty
dict and a singular model field exists, the Providers card showed zero
models while the model picker (get_available_models) still surfaced the
configured default model via its separate default_model path.

Fix: gate both the list and dict branches on truthiness so an empty
container falls through to the singular model fallback — matching the
picker's behaviour and ensuring the card always shows at least the
configured default model.

Updated test_empty_dict_falls_through_to_model_field accordingly.
2026-08-07 22:36:19 +00:00
..
2026-07-22 18:45:24 +00:00