He was praying to the Father. I am not a Oneness guy. I think it's absurd.
Part of the point of Jesus, is He is us, fully man, as limited, frail, vulnerable, frightened, needy, desiring, ambitious as we are.
And as a man He called us friends, ones who God wishes to share all He has.
Now that is the amazing nature of God. That He should express Himself as a man, take the risk that His heart and soul and life would survive and walk in perfection with us, and not inappropriately respond.
The temptation of Jesus was very real, and proved the point that God was as vulnerable as we are, yet His heart responded as we should in love and worship to the King, the Father.
So separate was Jesus's behaviour and so like a prophet, many groups have called Him just a prophet, a created being and not God.
It is classic of the Lord to create this middle path, which is the most difficult to understand yet both demonstrates the best realities but takes time to really take in.
As I write this, I am still amazed, that God came to my house today and eat with me at breakfast.
Phil 2:6-8
Who, being in very nature God, did not consider equality with God something to be grasped,
but made himself nothing, taking the very nature of a servant, being made in human likeness.
And being found in appearance as a man, he humbled himself and became obedient to death--even death on a cross!