continuedev / continue

⏩ Continue is the leading open-source AI code assistant. You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains
https://docs.continue.dev/
Apache License 2.0
19.54k stars 1.7k forks source link

[CON-266] Improved "Apply" prompting #2137

Open sestinj opened 2 months ago

sestinj commented 2 months ago

Validations

Problem

GPT-4o-mini can sometimes output english, which should be avoided at all costs. A better prompt/filtering can fix this

Solution

No response

CON-266

sestinj commented 2 months ago

Sidenote: it's possible to get really quick diff application in some cases if you look for full overwrites. You could just ask a language model whether this is an exact overwrite, and if so do that.

sestinj commented 2 months ago

Another good idea: Do "lazy" full file rewrite, and then a series of find/replace to fill that in