From 66d59e01d0022f76d3e8e468c5a0a983a24f504e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 18 May 2026 23:39:03 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/core/inference/llama_cpp.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/studio/backend/core/inference/llama_cpp.py b/studio/backend/core/inference/llama_cpp.py index e6cd877896..37c8d61f55 100644 --- a/studio/backend/core/inference/llama_cpp.py +++ b/studio/backend/core/inference/llama_cpp.py @@ -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