@Dale ********
For several countries you’ll need from three to six months left beyond your stay to enter. However this is not the case for uk. Thailand is no problem.
“To travel to the UK, your passport will need to be valid for the entire duration of your trip.”