Spoke too soon. ChatGPT wrote a bug too. I pointed this out, it acknowledged the bug, apologised, and rewrote the functionbut the new function was completely identical. I pointed this out and it apologised. Didnt fix it though. I had to explicitly ask. Maybe Im safe after all.