Skip to content

Commit

Permalink
refactor: Improve text processing by stripping whitespace after remov…
Browse files Browse the repository at this point in the history
…ing reasoning tags
  • Loading branch information
paul-gauthier committed Jan 28, 2025
1 parent ebb8596 commit aa339d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aider/coders/base_coder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1889,7 +1889,7 @@ def get_multi_response_content(self, final=False):
pattern = (
f"<{self.main_model.remove_reasoning}>.*?</{self.main_model.remove_reasoning}>"
)
res = re.sub(pattern, "", res, flags=re.DOTALL)
res = re.sub(pattern, "", res, flags=re.DOTALL).strip()

return res

Expand Down

0 comments on commit aa339d0

Please sign in to comment.