mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 06:15:00 +00:00
disabled gpt-3.5 powered edits
This commit is contained in:
parent
94afa11d19
commit
782d4c3659
2 changed files with 5 additions and 5 deletions
8
coder.py
8
coder.py
|
@ -401,10 +401,9 @@ class Coder:
|
|||
self.fnames[path] = 0
|
||||
|
||||
edited.add(path)
|
||||
if self.do_replace(path, original, updated):
|
||||
continue
|
||||
edit = match.group()
|
||||
self.do_gpt_powered_replace(path, edit, inp)
|
||||
self.do_replace(path, original, updated)
|
||||
# edit = match.group()
|
||||
# self.do_gpt_powered_replace(path, edit, inp)
|
||||
|
||||
return edited
|
||||
|
||||
|
@ -427,6 +426,7 @@ class Coder:
|
|||
else:
|
||||
new_content = replace_most_similar_chunk(content, before_text, after_text)
|
||||
if not new_content:
|
||||
self.console.print(f"[red]Failed to apply edit to {fname}")
|
||||
return
|
||||
|
||||
fname.write_text(new_content)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue