OpenAI has filed counterclaims against Apple in a California federal court, accusing the company of stealing trade secrets and restricting its access to hardware suppliers. The filing follows Apple’s lawsuit alleging OpenAI poached its employees to gain access to its technology.

The ChatGPT maker filed its claims on Friday, saying Apple’s employment practices were designed to “trap” employees and keep them from working on competitors’ technology.

Apple and OpenAI did not immediately respond to requests for comment from Reuters.

The dispute has intensified amid competition for talent and proprietary technology as the companies race to develop AI products. In July, Apple sued OpenAI and two former employees, alleging they misappropriated its trade secrets to benefit OpenAI’s move into consumer hardware. OpenAI has denied the allegations.

The cases could shape a contest over who controls future AI devices that may not rely on traditional apps or operating systems. If successful, such devices could draw consumer attention away from Apple’s best-selling iPhone. Analysts believe OpenAI is working on a phone or another device of its own.