BuzzFeed’s stock surged to a seven-month high Thursday as the online media company vowed to invest heavily in artificial intelligence-driven content, with the rally from the once left-for-dead stock coming as interest in the viral AI chatbot ChatGPT spreads.