Google and Meta moved cautiously on AI. Then came OpenAI’s ChatGPT.