OpenAI announced plans to test advertising in ChatGPT, marking a shift in how the company monetizes its popular AI platform.