Current Chat GPT is basically doing next word prediction. There will be models that are built specifically to handle the problems you highlighted and are enabled by the Chat GPT API. They will probably require significant human feedback per use