style: Break long comment into two lines to fix flake8 line length issue

This commit is contained in:
Paul Gauthier (aider) 2025-03-05 16:56:55 -08:00
parent 6212b38ea6
commit dc02daecee

View file

@ -617,7 +617,8 @@ class Model(ModelSettings):
pattern = f"<{self.remove_reasoning}>.*?</{self.remove_reasoning}>"
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}>"
if closing_tag in res:
# Split on the closing tag and keep everything after it