SIM800L Wiring - logic level shifter / converter

How does the level shifter know what voltage you want to shift to?

The circuit diagram I used is on page 32 of the publication 'SIM800L Hardware Design V1.00' if you want to do the same.