The multi-year deal is the latest such agreement to be struck between OpenAI and a major media company.