From d434f8641dcb106b3193c033bca51b7994488773 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 28 Jan 2025 10:06:19 -0800 Subject: [PATCH] refactor: Prepare for potential reasoning tag removal in text merging --- aider/coders/base_coder.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index 3556c4f2c..887cc62f2 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -1882,7 +1882,13 @@ class Coder: if new.rstrip() != new and not final: new = new.rstrip() - return cur + new + + res = cur + new + # if self.main_model.remove_reasoning, then use that string. say it's "think" + # then use a regex to remove ".*" from the res + # the text may span many lines. ai! + + return res def get_rel_fname(self, fname): try: