mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
refactor: Prepare for potential reasoning tag removal in text merging
This commit is contained in:
parent
f49733d1d2
commit
d434f8641d
1 changed files with 7 additions and 1 deletions
|
@ -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 "<think>.*</think>" from the res
|
||||
# the text may span many lines. ai!
|
||||
|
||||
return res
|
||||
|
||||
def get_rel_fname(self, fname):
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue