mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
refactor: Improve text processing by stripping whitespace after removing reasoning tags
This commit is contained in:
parent
ebb8596f03
commit
aa339d0851
1 changed files with 1 additions and 1 deletions
|
@ -1889,7 +1889,7 @@ class Coder:
|
|||
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue