Are you using chatgpt 3.5? Found that chatgpt 4 has been a lot less error prone and codes much more efficiently
The free chatgpt… 3.5 I think? I’m cheap