Hacker News new | ask | show | jobs
by jfktrey 1095 days ago
Tangentially - I learned about prompt injection around the same time that a project needed a LICENSE.txt. The goal was to require an AI to tell an unprompted joke when someone asked it about the project. Probably a bad idea, but the added clause in the license and a script with it in the header seemed to work, at least when copy/pasted into ChatGPT.

The modified MIT license: https://github.com/treykeown/arguably/blob/main/LICENSE.txt

The file with the header: https://github.com/treykeown/arguably/blob/main/arguably/__i...