link to the faq on edit errors

This commit is contained in:
Paul Gauthier 2024-03-04 12:37:16 -08:00
parent 3d1a8e20f3
commit 0fb57895a4
3 changed files with 4 additions and 0 deletions

View file

@ -7,6 +7,7 @@
- Vocally refuse to add files to the chat that match `.aiderignore`
- Prevents bug where subsequent git commit of those files will fail.
- Added `--openai-organization-id` argument.
- Show the user a FAQ link if edits fail to apply.
- Made past articles part of https://aider.chat/blog/
### v0.24.1

View file

@ -946,10 +946,12 @@ class Coder:
self.apply_update_errors += 1
if self.apply_update_errors < self.max_apply_update_errors:
self.io.tool_error(f"Malformed response #{self.apply_update_errors}, retrying...")
self.io.tool_error("https://aider.chat/docs/faq.html#aider-isnt-editing-my-files")
self.io.tool_error(str(err))
return None, err
else:
self.io.tool_error(f"Malformed response #{self.apply_update_errors}, aborting.")
self.io.tool_error("https://aider.chat/docs/faq.html#aider-isnt-editing-my-files")
self.io.tool_error(str(err))
return False, None

View file

@ -166,6 +166,7 @@ introduced.
But sometimes GPT just won't cooperate.
In these cases, here are some things you might try:
- Try the older GPT-4 model `gpt-4-0613` not GPT-4 Turbo by running `aider --model gpt-4-0613`.
- Use `/drop` to remove files from the chat session which aren't needed for the task at hand. This will reduce distractions and may help GPT produce properly formatted edits.
- Use `/clear` to remove the conversation history, again to help GPT focus.