From af31c54d0212f3cd540d96c549ab6beea333c9b1 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 11:01:29 +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 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/studio/backend/core/inference/llama_cpp.py b/studio/backend/core/inference/llama_cpp.py index 560d50e92e..3839e97228 100644 --- a/studio/backend/core/inference/llama_cpp.py +++ b/studio/backend/core/inference/llama_cpp.py @@ -4070,11 +4070,7 @@ class LlamaCppBackend: # Reserve extra iterations for re-prompts and continues so they # don't consume the caller's tool-call budget. Only add the # extra slots when tool iterations are actually allowed. - _extra = ( - _MAX_REPROMPTS + _MAX_CONTINUES - if max_tool_iterations > 0 - else 0 - ) + _extra = _MAX_REPROMPTS + _MAX_CONTINUES if max_tool_iterations > 0 else 0 for iteration in range(max_tool_iterations + _extra): if cancel_event is not None and cancel_event.is_set(): return