5 ms·
Give me the snippet and I guarantee I can get GPT-4 to identify the bug with no hints and minimal prompting.
by boringuser2 4y ago
Give me the snippet and I guarantee I can get GPT-4 to identify the bug with no hints and minimal prompting.
- 8n4vidtmkvmk 4y agoit often works if you yourself can spot the bug, you can coax it to fix it but if you don't know it's there...
- int_19h 4y agoWith GPT-4, quite often, if you just ask it to review its own result for correctness, it'll spot the issue without further prompting. So you can just always ask that, although then you risk dealing with hallucinated non-bugs.
- deleted 4y ago[deleted]
- rjbwork 4y agoI won't do that...but I will try it myself. Give me a few. EDIT: Well I'll be damned. "However, there is a bug in the script as it only checks for the tags attribute in the first 10 lines of the resource block using the grep -A10 command. "
- boringuser2 4y agoIt takes GPT-4 perhaps 25-30 tries on the API to help me write an entire class with complex functionality, including testing, correcting and asking for new output. Sometimes, it can one-shot the problem. Gonna go with Carmack and say that "hand-coding" isn't going to last. Another thing it can do is reliably debug a file, or point me in the right direction, if I explain the bug and provide the code. It's scary as hell because I can reliably assume that it will always understand the nuance to the content I provide.
- dizhn 4y agoHow do you interface with gpt4? Using chatgpt free mode (so gpt3.5) when i try to have it reitarate it usually changes the whole approach after a while. One example is when writing a CI file it starts with a node image but later while fixing something unrelated it switches to an alpine image.