The New York Times has filed suit against artificial intelligence startup Perplexity for copyright infringement.