Apple has sued OpenAI, accusing the artificial intelligence company of encouraging former Apple employees to steal confidential trade secrets to help develop ChatGPT-related hardware.