From 3d666d9929b0a193c5fd05501b278167747e4cff Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 5 Mar 2025 16:02:14 -0800 Subject: [PATCH] style: Apply linter formatting to models.py --- aider/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/models.py b/aider/models.py index 8131c7ae7..767336342 100644 --- a/aider/models.py +++ b/aider/models.py @@ -616,13 +616,13 @@ class Model(ModelSettings): # Try to match the complete tag pattern first pattern = f"<{self.remove_reasoning}>.*?" res = re.sub(pattern, "", res, flags=re.DOTALL).strip() - + # If closing tag exists but opening tag might be missing, remove everything before closing tag closing_tag = f"" if closing_tag in res: parts = res.split(closing_tag, 1) res = parts[1].strip() if len(parts) > 1 else res - + return res def simple_send_with_retries(self, messages):