Since AI use is based on "fair-use" how can you add a no-AI clause? Only protection I see is to not publish the code.
Doesn't prevent training in the US and use of the trained AI and material it produces here, I guess.
Then I have to start a civil law-suit and prove that the produced work is similar enough to the the original work. That was the step that failed in the Hellwig (Linux) vs. VMWare lawsuit.