mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-27 01:11:40 +00:00
The retry exhaustion checks used > instead of >= to compare retry_count against max_retries. Since the while loop condition is retry_count < max_retries, the check retry_count > max_retries can never be true inside the loop. When retries are exhausted, the loop exits and falls through to response.choices[0] on an invalid response, crashing with IndexError instead of returning a proper error. |
||
|---|---|---|
| .. | ||
| agent | ||
| cron | ||
| gateway | ||
| hermes_cli | ||
| integration | ||
| tools | ||
| __init__.py | ||
| conftest.py | ||
| test_413_compression.py | ||
| test_hermes_state.py | ||
| test_model_tools.py | ||
| test_run_agent.py | ||
| test_toolset_distributions.py | ||
| test_toolsets.py | ||