[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
fd53dab931
commit
66d59e01d0
1 changed files with 1 additions and 3 deletions
|
|
@ -4083,9 +4083,7 @@ class LlamaCppBackend:
|
|||
# _MAX_CONTINUES). itertools.count keeps `continue` semantics
|
||||
# intact in the loop body below.
|
||||
for iteration in _itertools.count():
|
||||
if iteration >= (
|
||||
max_tool_iterations + _reprompt_count + _continue_count
|
||||
):
|
||||
if iteration >= (max_tool_iterations + _reprompt_count + _continue_count):
|
||||
break
|
||||
if cancel_event is not None and cancel_event.is_set():
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue