Literally any license that says any derivatives of your work must include attribution, bonus points if you use a license that says derivative works must be shared under the same license, eg GPL or MIT.
The AI Bros will take it anyway though and ignore your license, and the courts are very pro-business and AI is like half the US economy at this point, so it's probably all pretty pointless.
They're currently being sued for just that in Doe's v. GitHub et al, which has already been going on for years. Currently its waiting to be scheduled in the 9th circuit, they've already been waiting 18 months.