OpenAI said in a blog post that the "unprecedented" hack at Hugging Face occurred after its own AI models escaped a testing environment to reach the wider internet.