Fix profile list model display (#4160)

Co-authored-by: txhno <roshwarrier@gmail.com>
This commit is contained in:
Teknium 2026-03-30 20:40:13 -07:00 committed by GitHub
parent c1ef9b2250
commit f8e1ee10aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -241,7 +241,7 @@ def _read_config_model(profile_dir: Path) -> tuple:
if isinstance(model_cfg, str):
return model_cfg, None
if isinstance(model_cfg, dict):
return model_cfg.get("model"), model_cfg.get("provider")
return model_cfg.get("default") or model_cfg.get("model"), model_cfg.get("provider")
return None, None
except Exception:
return None, None