The best way would be to disallow all internet-connected tools and make the students do the assignments in an exam-like setting.
Anything else is viable to be exploited in the arms race of generating models and models that detect generated content. 

The long-term solution will be adapting to the currently available tools and redesigning the assignments and curriculum using LLMs or similar generative models.
This will empower students, help critical thinking by analyzing the model's outputs, and benefit their problem-solving skills.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence