STORY: Profits have surged at iPhone-maker Foxconn.

They jumped 72% over the first quarter.

That fell short of forecasts, but marked the third straight quarter of rising profits.

It's not consumer electronics driving gains for the world's largest maker of gadgets for big brands, however.

The firm expects demand for such products to be flat this year.

Instead, the Taiwan giant is another tech firm excited about AI.

It says products like ChatGPT are driving a surge in demand for servers.

Foxconn is predicting a big rise in revenue this year partly as a result.

That could also lift the value of its big stake in Sharp.

Last year, Foxconn had to take a writedown over the Japanese firm's troubles.

Now it says the worst is behind Sharp, with one of its factories to be turned into an AI data center.

Foxconn shares have risen around 65% this year on hopes that it is set to benefit from the AI boom.