Tesla has an "Auto high-beams" feature which attempts to detect traffic and dip the lights when it does. I find that it reacts much slower than I normally would to oncoming traffic, so I don't use this feature.
If the car is in autopilot, it requires the auto high beams to be on, but using autopilot at night is not something I would be comfortable with.