ChatGPT and other AI tools are not knowledge creation tools. Content from generative AI is a nonrecoverable source as it can't be retrieved or linked. If these tools are used to gather information for an assignment, it should be cited. MLA has the following suggestions.
Note: Information about using and citing ChatGPT and other generative AI tools is still being developed and will continue to be updated. (last updated Feb. 2023)