OAKLAND, Calif. — Tesla chief executive Elon Musk sparred in federal court for hours Wednesday with a lawyer representing ChatGPT-maker OpenAI, in a verbal tussle over whether the billionaire played the role of hero or villain in the founding of the artificial intelligence company he is now suing along with its top executives.


