The £330 million deal began in 2024 to help manage hospital waiting lists in England. It had been due to run until 2031.
The government said it would continue a key NHS data contract in England with the US technology company Palantir until 2029, rather than trigger an early release clause next year.
Ministers said a new contract would not be awarded until 2029, despite calls from some Labour MPs to end the arrangement.
The decision leaves Palantir in place on a central piece of NHS data work for several more years, while the government prepares to open the contract to other bidders.
Ministers are inviting British firms to bid for the contract from 2029. A procurement programme is due to begin next summer.
The prime minister had faced pressure from some Labour MPs to cut ties with Palantir, described in the debate as a controversial supplier.
Some Labour MPs said they were extremely disappointed by the decision. They called the contract"an albatross"hanging around the NHS's neck.
An MP for Hayes and Harlington said his constituents"expect the contract to be ended".
Palantir UK said it was right to press forward with the programme, which it said was exceeding targets.