Skip to content

Commit aa339d0

Browse files
committed
refactor: Improve text processing by stripping whitespace after removing reasoning tags
1 parent ebb8596 commit aa339d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aider/coders/base_coder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1889,7 +1889,7 @@ def get_multi_response_content(self, final=False):
18891889
pattern = (
18901890
f"<{self.main_model.remove_reasoning}>.*?</{self.main_model.remove_reasoning}>"
18911891
)
1892-
res = re.sub(pattern, "", res, flags=re.DOTALL)
1892+
res = re.sub(pattern, "", res, flags=re.DOTALL).strip()
18931893

18941894
return res
18951895

0 commit comments

Comments
 (0)