A US district judge in California has dismissed most claims raised by authors against OpenAI’s ChatGPT.