mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
refactor: Add comment explaining closing tag splitting logic
This commit is contained in:
parent
3d666d9929
commit
8c15802277
1 changed files with 1 additions and 0 deletions
|
@ -620,6 +620,7 @@ class Model(ModelSettings):
|
|||
# If closing tag exists but opening tag might be missing, remove everything before closing tag
|
||||
closing_tag = f"</{self.remove_reasoning}>"
|
||||
if closing_tag in res:
|
||||
# Split on the closing tag and keep everything after it
|
||||
parts = res.split(closing_tag, 1)
|
||||
res = parts[1].strip() if len(parts) > 1 else res
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue