prompt tweaks, retry on httpx.ReadTimeout

This commit is contained in:
Paul Gauthier 2024-05-11 07:47:53 -07:00
parent 3171789b1f
commit 1098b428e6
3 changed files with 3 additions and 2 deletions

View file

@ -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."

View file

@ -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:

View file

@ -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,