mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-26 01:01:40 +00:00
Fix profile list model display (#4160)
Co-authored-by: txhno <roshwarrier@gmail.com>
This commit is contained in:
parent
c1ef9b2250
commit
f8e1ee10aa
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue