Comments (2)
Good catch, thanks for reporting. I just pushed a fix. You'll need to install from github to pick it up.
The root of the issue is that GPT-4 won't consistently return properly formatted diffs. The <<ORIGINAL/>>UPDATED
format aider uses is by far the most reliable format I've discovered. But GPT-4 won't always conform and output even this very simple format.
I've tried asking it to output diff -c
, diff -u
, sed
, and many other formats. GPT-4 does much, much worse on them. Even the new functions api is not looking like a panacea here.
One key issue about the "output format" is that it's easy to "distract" the LLM if you ask it to use too structured or technical of a format. Especially when you're asking it to write code. The coding itself is a challenging task, and asking it to render actual diff or vim or sed editing outputs is going to confuse it. I have absolutely seen the quality of the coding task degrade when the output format is too complex.
Imagine asking a junior developer to "implement this cool feature, but I want you to hand type the diffs required to change the current code".
I'm hoping to write up something more quantitative and concrete about this aspect of AI coding soon.
from aider.
Closing this for now. Feel free to re-open if you continue to have issues.
from aider.
Related Issues (20)
- Refactor legacy codebase HOT 3
- [Workflow] fzf file selection HOT 4
- FR: add docstrings, types and tests to udiff_coder.py HOT 2
- Preventing Diff in Commit Messages HOT 1
- Wrong project name for pipx in FAQ HOT 1
- Incorrect prompt to "Add these files to the chat?" HOT 2
- Command line paramater to specify test command HOT 6
- When git user and email are not set, don't dump a bunch of useless info to the screen HOT 5
- Error - Could not run aider on existing git repo HOT 7
- Support tabs in the prompt HOT 8
- Abstract LLM interfaces and Claude 3 Opus HOT 9
- Enhance error message for missing API Key HOT 3
- Aider very slow ( on large repos ) HOT 2
- Aider Researcher HOT 3
- Extending Aider - Senior Aider AI HOT 4
- Add files based on content HOT 2
- Add deepseek-coder api HOT 5
- Bug when starting aider HOT 9
- [BUG] aider can cause data loss HOT 8
- Missing tags.scm abort execution of repo map HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aider.