If you can get that code merged, yes, that seems to be the case.
Unless there’s a CLA or copyright assignment, contributors retain copyright and the project maintainers have no special status or rights other than those granted to everyone by the license. It doesn’t really make sense that a project maintainer’s decision to merge a contributor’s LLM-generated code can relicense code written by other people.
Otherwise what would prevent me from, say, forking Linux, merging partially LLM-generated code into my fork, then declaring that all of Linux (or my fork of it, which is almost identical) is now public domain?
@civodul @admin It varies by jurisdiction. In the US, LLM output cannot be copyrighted and is public domain, but in the UK it can be copyrighted and the copyright holder is whoever prompted the LLM (assuming the LLM is not plagiarizing anything, which is questionable).
If it’s “legally significant” (10 lines of code or more), and if these LLM-produced contributions are not clearly identified, then one could consider the whole as public domain, AIUI.
Does that mean that you can make any program (or even any copyrighted work) public domain by adding LLM output to it and not clearly marking it? That can’t be right…