refactor: Move re import to top and remove AI comment

This commit is contained in:
Paul Gauthier (aider) 2025-01-28 10:08:42 -08:00
parent 910d384ed8
commit 74d179e479

View file

@ -9,6 +9,7 @@ import mimetypes
import os
import platform
import re
import re
import sys
import threading
import time
@ -1886,8 +1887,6 @@ class Coder:
res = cur + new
if self.main_model.remove_reasoning:
import re # to top ai!
pattern = (
f"<{self.main_model.remove_reasoning}>.*?</{self.main_model.remove_reasoning}>"
)