The usual academic practice for citing is to put the person that contributed to the manuscript as an author, and sources in the references. In this case, they could've put the chatgpt output in the reference, from a place where it