Change the sentence to direct speech.
The baker said he had been baking the cake until then.
The baker said, “I was baking the cake until now.”
The baker said, “I had baked the cake until now.”
The baker said, “I have been baking the cake until now.”
The baker said, “I had been baking the cake until now.”