Earlier quoted context omitted.
And how close is too close?
You can get ChatGPT to output copyright material very easily
You can also copy and paste from an existing copyrighted work.
In either case, it is you, the human - with agency to do so - who should be liable for the content that you publish.