It's a dangerous game trying to use LLM's to code stuff, especially if you don't know much about it. ChatGPT has sent me down some insane rabbit holes, often enough I double check whatever it tells me. That's not to say it isn't useful, it usually points me in the right direction. I use it every day lol.