Apple unveils new AI tool as competition toughens