China finalizes first-of-its-kind rules governing generative A.I. services like ChatGPT