There are already a number of tools that can detect it. Ive been using chatGPT a bit recently to get coding snippets, and I have to say a lot of it is either incomplete or incorrect. I wouldnt want to rely on it for something as importa