Nvidia will invest in OpenAI, the developer of ChatGPT, fueling investor confidence in tech stocks.