mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-06 04:35:00 +00:00
feat: add confirmation prompt when token limits are exceeded
This commit is contained in:
parent
3d2700d29d
commit
58d763f971
1 changed files with 2 additions and 1 deletions
|
@ -1244,7 +1244,8 @@ class Coder:
|
||||||
self.io.tool_error("- Use /drop to remove unneeded files from the chat")
|
self.io.tool_error("- Use /drop to remove unneeded files from the chat")
|
||||||
self.io.tool_error("- Use /clear to clear the chat history")
|
self.io.tool_error("- Use /clear to clear the chat history")
|
||||||
self.io.tool_error("- Break your code into smaller files")
|
self.io.tool_error("- Break your code into smaller files")
|
||||||
return False
|
if not self.io.confirm_ask("Try to proceed anyway?", default="n"):
|
||||||
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def send_message(self, inp):
|
def send_message(self, inp):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue