mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 20:35:00 +00:00
style: Break long comment into two lines to fix flake8 line length issue
This commit is contained in:
parent
6212b38ea6
commit
dc02daecee
1 changed files with 2 additions and 1 deletions
|
@ -617,7 +617,8 @@ class Model(ModelSettings):
|
||||||
pattern = f"<{self.remove_reasoning}>.*?</{self.remove_reasoning}>"
|
pattern = f"<{self.remove_reasoning}>.*?</{self.remove_reasoning}>"
|
||||||
res = re.sub(pattern, "", res, flags=re.DOTALL).strip()
|
res = re.sub(pattern, "", res, flags=re.DOTALL).strip()
|
||||||
|
|
||||||
# If closing tag exists but opening tag might be missing, remove everything before closing tag
|
# If closing tag exists but opening tag might be missing, remove everything before closing
|
||||||
|
# tag
|
||||||
closing_tag = f"</{self.remove_reasoning}>"
|
closing_tag = f"</{self.remove_reasoning}>"
|
||||||
if closing_tag in res:
|
if closing_tag in res:
|
||||||
# Split on the closing tag and keep everything after it
|
# Split on the closing tag and keep everything after it
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue