Tech billionaire Elon Musk took to X, the social media platform he owns, to repeatedly attack OpenAI chief executive Sam Altman.