Perplexity said it would build infrastructure for TikTok at datacenters in the United States and maintain it with US oversight.