From 7c08ade3a4820be734464397031faa7074949fe4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 24 May 2026 21:11:10 +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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/studio/backend/core/inference/llama_cpp.py b/studio/backend/core/inference/llama_cpp.py index e6e0263180..ff7b1eb598 100644 --- a/studio/backend/core/inference/llama_cpp.py +++ b/studio/backend/core/inference/llama_cpp.py @@ -325,9 +325,8 @@ def _has_answer_artifact(text: str) -> bool: # themselves start with a strong work verb ("First, I'll:\n # 1. Load...\n2. Run...") is a plan stall, even when no work # verb appears before the list. - if ( - _STRONG_INTENT_BEFORE_LIST.search(text) - and _NUMBERED_ACTION_ITEM.search(text) + if _STRONG_INTENT_BEFORE_LIST.search(text) and _NUMBERED_ACTION_ITEM.search( + text ): return False return _PLAN_LIST_FRAMING.search(text) is None