Taipei has no Thai Embassy only a trade and economic office.
You also require a Taiwanese ID card etc to be able to apply there. It does state though you require flights in and out of Thailand for Non Taiwanese nationals.
I believe that's for non Taiwanese passport holders though with no Taiwanese residency.
Best to contact them and be certain you can actually apply there before travelling.