Not exactly related, but your comment about plagiarism made me think of my days of writing papers and citing APA style. How do you cite a source if it came from ChatGPT and it likely doesn’t fully understand where it got its information?
You don't. You're only supposed to cite primary sources and peer-reviewed secondary sources. ChatGPT is a tertiary source, like dictionaries and encylopediae. You use tertiary sources to get a quick overview of a topic before you begin delving into primary and secondary sources, but you never include tertiary material in your paper.
It'll happy generate sources for you -- just be aware that most of the citations will be bogus. Not sure how many teachers/professors test the validity of citations.