mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 03:05:00 +00:00
Better stats for retry outcomes
This commit is contained in:
parent
7fc1bfd430
commit
99194e4051
2 changed files with 17 additions and 9 deletions
|
@ -73,6 +73,7 @@ class WholeFileCoder(Coder):
|
|||
fname = list(chat_files)[0]
|
||||
else:
|
||||
show_chat_files = " ".join(chat_files)
|
||||
# TODO: adopt the new allowed_to_edit()
|
||||
raise ValueError(f"{fname} is not one of: {show_chat_files}")
|
||||
|
||||
elif fname:
|
||||
|
@ -97,7 +98,9 @@ class WholeFileCoder(Coder):
|
|||
|
||||
return "\n".join(output)
|
||||
|
||||
if fname:
|
||||
raise ValueError("Started a ``` block without closing it")
|
||||
# TODO: take the file even it wasn't closed properly?
|
||||
#
|
||||
# if fname:
|
||||
# raise ValueError("Started a ``` block without closing it")
|
||||
|
||||
return edited
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue