Sam Altman said Elon Musk tried many times for total control of OpenAI, which he's now suing.

Musk’s lawsuit accusing Altman and OpenAI of abandoning their mission as a non-profit has shed light on their workings at the artificial intelligence giant.

OpenAI CEO Sam Altman took the witness stand Tuesday to defend his business record in a trial pitting him against Elon Musk, rebutting testimony that disparaged his leadership at…