John Ternus, right, who became Apple’s chief executive on Tuesday, with Tim Cook, who held the job for 15 years, at the Sun Valley Conference in Idaho in July.
The social networking giant projected it could spend $10 billion annually on Anthropic’s tools, illustrating the friend-foe relationships underlying the A.I. race.