Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,14 +742,14 @@ def __init__(
provider: str = None,
api_key: str = None,
base_url: str = None,
max_turns: int = 60,
max_turns: int = None,
verbose: bool = False,
compact: bool = False,
resume: str = None,
):
"""
Initialize the Hermes CLI.

Args:
model: Model to use (default: from env or claude-sonnet)
toolsets: List of toolsets to enable (default: all)
Expand Down Expand Up @@ -792,7 +792,7 @@ def __init__(
self._nous_key_expires_at: Optional[str] = None
self._nous_key_source: Optional[str] = None
# Max turns priority: CLI arg > env var > config file (agent.max_turns or root max_turns) > default
if max_turns != 60: # CLI arg was explicitly set
if max_turns is not None:
self.max_turns = max_turns
elif os.getenv("HERMES_MAX_ITERATIONS"):
self.max_turns = int(os.getenv("HERMES_MAX_ITERATIONS"))
Expand Down Expand Up @@ -2642,7 +2642,7 @@ def main(
provider: str = None,
api_key: str = None,
base_url: str = None,
max_turns: int = 60,
max_turns: int = None,
verbose: bool = False,
compact: bool = False,
list_tools: bool = False,
Expand Down