From 1098b428e6e118be2e4ebb49a3dd2b14ae79e50e Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 11 May 2024 07:47:53 -0700 Subject: [PATCH] prompt tweaks, retry on httpx.ReadTimeout --- aider/coders/base_coder.py | 2 +- aider/prompts.py | 2 +- aider/sendchat.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index 8164073ba..42e9f3531 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -432,7 +432,7 @@ class Coder: if self.abs_fnames: files_content = self.gpt_prompts.files_content_prefix files_content += self.get_files_content() - files_reply = "Ok, I will propose edits to those files to complete your request." + files_reply = "Ok, any changes I propose will be to those files." else: files_content = self.gpt_prompts.files_no_full_files files_reply = "Ok." diff --git a/aider/prompts.py b/aider/prompts.py index f1fa7a2d4..e747f8470 100644 --- a/aider/prompts.py +++ b/aider/prompts.py @@ -17,7 +17,7 @@ undo_command_reply = ( " why the changes were reverted." ) -added_files = "I added these *read-write* files: {fnames}" +added_files = "I added these files to the chat: {fnames}" run_output = """I ran this command: diff --git a/aider/sendchat.py b/aider/sendchat.py index 3708ce799..126bb50de 100644 --- a/aider/sendchat.py +++ b/aider/sendchat.py @@ -28,6 +28,7 @@ def should_giveup(e): ( httpx.ConnectError, httpx.RemoteProtocolError, + httpx.ReadTimeout, litellm.exceptions.APIConnectionError, litellm.exceptions.APIError, litellm.exceptions.RateLimitError,