True, though I’m not sure this risk isn’t overblown. I’ve heard of a couple cases where someone got a copyright statement spit out, but I haven’t been able to find much more than the one or two that I’ve seen on hn. If you have more examples, I’d love to hear about them.
Code is also tricky: there are a finite number of ways to write an algorithm, and I’m sure both that multiple people have written the same version of left pad for example, and that it is not possible to copyright something small like that. When the code gets bigger, the likelihood of an llm spitting out large chunks of GPL’d code seems vanishingly small (without asking for something specific like that). Though I’d love to see examples to the contrary.