MIT license requires credit.
Ahhhh yes that's one that lawyers might have fun with. MIT says:
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
My personal thought on that: it's going to be almost guaranteed that, if an LLM is producing stuff it clearly derived from a certain piece of code XYZ, it will also be capable of producing the correct answer to the question "what's the license for XYZ?" And lawyers will successfully argue that this counts as "included".
So does the BSD license. Copyright must be reproduced