I'm not sure about Star Alliance, but in OneWorld each airline makes its own decisions on this sort of thing, so in this case it would be Thai's decision (probably over the objections of the others). The companies all settle on an intra-alliance basis for miles earned or redeemed.