The phrase “earnestly desire the best gifts” does not mean that we ask for gifts, but that we prepare the heart with purity and meekness to receive the gifts which are not only miraculous powers, but also include wisdom, knowledge and faith, according to the Apostle's teaching (1 Cor.12: 8,9).
If you want to ask God for a good gift, the Lord teaches us what to ask! He says in the Sermon on the Mount: “But seek first the kingdom of God and His righteousness, and all these things shall be added to you” (Matt.6: 33).
We notice that in the Lord's prayer, which He taught us and which is an exemplary prayer, we do not ask for gifts.