Let's take that to the next step - what happens if ChatGPT happens to get trained on something that is copyrightable - then a prompt script can be used to reproduce the original - does that mean the original is now considered not protected by copyright?
This is a lot more murky than "show me the prompts/parameters" and it's not protected by copyright.
If a copyright precedes the existence of a model, the model was trained on that code and someone distributes code from the model that is a near-verbatim reproduction, that's a different story (in large part because getting that near verbatim reproduction would probably require willful intent rather than just being accidental)
Just out of curiosity.
I don’t think the owner of the copyright loses copyright simply because something else output a copy of his work. Maybe it is “generated” but the copyright holder still has his rights per copyright statutes and you would still be violating those rights by distributing your own copies from the AI output.