Among those who wield weapons, I am Rama who is an avatara of Visnu
himself. The avatara in this human body of Rama had great prowess. Even with one
arrow he could dry up the ocean and perform incredible feats because his arrows had extraordinary powers. Since there are other powerful avataras also named Rama, like Parasurama and Balarama, Sankara says, Dāśarathī Rāma, who was the son of Dasaratha.
So it is Lord Rama, son of Dasaratha who is referred here to.
BG 10.31 - Of the purifiers I am air; among the wielders of weapons I am Rama. Among fishes, too, I am the shark; I am Ganga among rivers.
This has a solid back-up in MahAbhArata's Adi Parva:
Sauti said, 'Listen, O ye Brahmanas, to the sacred descriptions I utter O ye best of men, ye deserve to hear of the place known as Samanta-panchaka. In the interval between the Treta and Dwapara Yugas, Rama (the son of Jamadagni) great among all who have borne arms, urged by impatience of wrongs, repeatedly smote the noble race of Kshatriyas.
There is a difference between "warrior" (as in Qn) & "wielder of weapons" (correct translation). "Wielder" means "[much] conversant". A person very much conversant with weapons may not win all the wars, because war requires -- tactics, swiftness, strategy -- apart from weapons.
Lord RAma was known for many other things like -- protector of Dharma, marriage with Sita, 14 years in forest, killing RAvana, later life related to Luv-Kusha, chemistry with VAli-Sugriva-Hanumana; The weapons part was a small part of his life;
ParashurAma is primarily known for his hold on weapons, as he killed many of the Kshatriya-s; Moreover, he was also the Guru of other great warriors like -- Bhishma, Drona, Karna
It refers to Lord Shri RAM (son of Raja Dashrath) .Why it is so because the sloka clearly state word रामः
Means Just Ram but not Parshuram or any other Ram .Because Lord Ram with his शस्त्र is undefeatable .Even Lord Shri Parshuram has acknowledged it During Goddess Shri Sita swayamvar prasang .
Further In shrimad bhagvatam when lord Brahma worshipped Lord Krishna He urged sloka :
सत्यव्रतं सत्यपरं त्रिसत्यं
सत्यस्ययोनिं निहतं च सत्ये
सत्यस्य सत्यमृतं सत्यनेत्रं,
सत्यात्मकं त्वाँ शरणं प्रपन्नः
He called the Lord as सत्य and everything related to him as सत्य mean Lord himself is सत्य and whatever he says/speaks is सत्य ,So when the Lord says राम then it means just राम but certainly not परशुराम ,otherwise it will be a lie aka असत्य and God never lies .
I know you may argue that Lord Shri Krishna manipulated things as suggested in Mahabharata and all but that is nothing but a fallacy ,Don't get influenced by the narrative made by so called different Dharmic serials and their creators , In the name of creativity they disrespect the dignity and purity of the Lord . Lord never speaks a lie ,Infact whatever he says becomes the ultimate truth because this is what God is all about , the truth and only the Truth . If you want to know the truth then you should read the actual ancient sculptures rather reading it through its interpretations. Jai Shri Krishna !
Like any library, Hinduism Stack Exchange shares great information, but does not offer personalized advice, and does not take the place of seeking such advice from any Acharya, Pundit, astrologer, Guru or other trustworthy Counselor.