The S&P 500 and the Nasdaq closed at record highs Monday after ChatGPT-maker OpenAI and Advanced Micro Devices reached a mega-deal that ignited a rally.

The S&P 500 and the Nasdaq closed at record highs Monday after ChatGPT-maker OpenAI and Advanced Micro Devices reached a mega-deal that ignited a rally.

The deal gives the ChatGPT creator the option to take up to a 10% stake in the Nvidia rival.