Musk, the world’s richest man, was a co-founder of OpenAI, the company that launched in 2015 and went on to create ChatGPT.