Don't run for the hills just yet.
Have you actually tried getting one of these models to generate even a simple piece of code? I have with a few, and my experience is that it is no better than asking a room full brand-new students to write you a piece of code, and then you have to correct it.
Well, except that the students will usually give you something that sort of works whereas the AI doesn't even attempt to run it. So far, the models are all giving me garbage that takes longer to correct than it would to write it myself.
Just as one fast example, I asked MS Copilot for a Graph API snip of code that would delete an email from an Exchange Online mailbox. It gave me a bizarre mix of two REST API based management PowerShell modules and completely made up some parameters for "deleteMode" offering deletion options that don't exist.
Now me, I happen to know this because I knew the answer to the question before I asked it, but if I did not already have this skill ... all I would have is trash.
My honest feeling on the matter is that given enough time, maybe five or ten years more, AI will be able to help a skilled developer produce content more rapidly, much more rapidly, but just as Tesla has learned the hard way, there had better be a skilled driver with their hands on the wheel who knows when to take over.
In the short term, I bet where AI is going to shine is in producing documentation, something most developers ... do not commit to with the priority it deserves.
With ChatGPT I have found that TDD helps. Also if I run the code ChatGPT gives me and get a compiler/interpreter error, then just cut and past the error back to ChatGPT it actually does a good job if fixing the error most of the time. The trick is to be persistent.
And don’t expect it to do all your thinking for you. It is just one more tool like an IDE or a Search Engine.