mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
prompt tweaks, retry on httpx.ReadTimeout
This commit is contained in:
parent
3171789b1f
commit
1098b428e6
3 changed files with 3 additions and 2 deletions
|
@ -432,7 +432,7 @@ class Coder:
|
||||||
if self.abs_fnames:
|
if self.abs_fnames:
|
||||||
files_content = self.gpt_prompts.files_content_prefix
|
files_content = self.gpt_prompts.files_content_prefix
|
||||||
files_content += self.get_files_content()
|
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:
|
else:
|
||||||
files_content = self.gpt_prompts.files_no_full_files
|
files_content = self.gpt_prompts.files_no_full_files
|
||||||
files_reply = "Ok."
|
files_reply = "Ok."
|
||||||
|
|
|
@ -17,7 +17,7 @@ undo_command_reply = (
|
||||||
" why the changes were reverted."
|
" 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:
|
run_output = """I ran this command:
|
||||||
|
|
|
@ -28,6 +28,7 @@ def should_giveup(e):
|
||||||
(
|
(
|
||||||
httpx.ConnectError,
|
httpx.ConnectError,
|
||||||
httpx.RemoteProtocolError,
|
httpx.RemoteProtocolError,
|
||||||
|
httpx.ReadTimeout,
|
||||||
litellm.exceptions.APIConnectionError,
|
litellm.exceptions.APIConnectionError,
|
||||||
litellm.exceptions.APIError,
|
litellm.exceptions.APIError,
|
||||||
litellm.exceptions.RateLimitError,
|
litellm.exceptions.RateLimitError,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue