mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-15 14:22:43 +00:00
fix(cli): ignore empty config sections
This commit is contained in:
parent
bd16395255
commit
bdecf0ab94
2 changed files with 14 additions and 0 deletions
2
cli.py
2
cli.py
|
|
@ -543,6 +543,8 @@ def load_cli_config() -> Dict[str, Any]:
|
|||
if key == "model":
|
||||
continue # Already handled above
|
||||
if key in file_config:
|
||||
if isinstance(defaults[key], dict) and file_config[key] is None:
|
||||
continue
|
||||
if isinstance(defaults[key], dict) and isinstance(file_config[key], dict):
|
||||
defaults[key].update(file_config[key])
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue