Foxconn, Nvidia's biggest server maker and a major Apple supplier, has been a big beneficiary of the trend towards AI, reporting last month a 35% rise in second-quarter profit that beat analyst forecasts.