Nvidia will invest up to $100 billion in OpenAI, supplying advanced chips while gaining a stake in the AI leader.