Xue Pinggui has no historical prototype; he's purely a folk character from a bittersweet and exhilarating tale.
He has nothing to do with the War God, Great General Xue, who was one of the fiercest warriors under Emperor Taizong during his later years. Born into a military family of renown, it was said he could secure Tianshan with just three arrows.
Some say his historical prototype is Shi Jingtao, but that man would be lucky to rank fourth on the list of historical traitors, given his overwhelmingly negative reputation.
However, Xu Qingyan didn't bother to research this... because it was simply too expensive to shoot. Xue Pinggui wouldn't even appear in the flesh, just as a silhouette.
Uh... Let me describe the scene briefly: Xue Pinggui is on his way here on horseback. When funds are low, actors undetermined, and the script nonexistent, this is what it looks like to shoot a music video on a shoestring budget.