that's a frontend issue though. If you use the python interpreter in ChatGPT, you can tell it to run the code until it works, at which point it'll do a couple of iterations before giving you code.
How many people are putting service credentials into a ChatGPT Python interpreter to see if their generated code "works"?
One of our very large customers was hit with ransomware recently. So…best practice is don’t do things like that.
You can just use your own.... There is still the risk GPT-4 gives you ~ "delete all the things" and you blindly run it on your infra, but.. it's better than what. you describe.