The polite thing to do when leaving a taxi is to say thank you and/or goodbye. As “goodbye” is different depending on if you are the party staying or leaving, the “goodbye” the driver will say to you will be different than the “goodbye” you say to the driver.