Smoothed generalized free energies for thermodynamics