mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 02:34:59 +00:00
refactor: Move re import to top and remove AI comment
This commit is contained in:
parent
910d384ed8
commit
74d179e479
1 changed files with 1 additions and 2 deletions
|
@ -9,6 +9,7 @@ import mimetypes
|
||||||
import os
|
import os
|
||||||
import platform
|
import platform
|
||||||
import re
|
import re
|
||||||
|
import re
|
||||||
import sys
|
import sys
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
|
@ -1886,8 +1887,6 @@ class Coder:
|
||||||
res = cur + new
|
res = cur + new
|
||||||
|
|
||||||
if self.main_model.remove_reasoning:
|
if self.main_model.remove_reasoning:
|
||||||
import re # to top ai!
|
|
||||||
|
|
||||||
pattern = (
|
pattern = (
|
||||||
f"<{self.main_model.remove_reasoning}>.*?</{self.main_model.remove_reasoning}>"
|
f"<{self.main_model.remove_reasoning}>.*?</{self.main_model.remove_reasoning}>"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue