The move is a departure from the iPhone maker's strategy of relying on third-party models to power AI features in the country.