The CEO of OpenAI, the company behind ChatGPT, went before a Senate subcommittee Tuesday and called for regulation of artificial intelligence.