Hey everyone makes mistakes when coding, even LLms.
There’s two approaches I use, I’m sure there are more.
* Do multiple completions and, filter the ones that successfully run, and take the most common result.
* Do a completion, if it fails, ask the Llm to find and correct the bug.