Partition functions and equilibrium constants for the diatomic molecules LiH and LiH + are presented for temperatures T up to 40,000 K. The results are obtained by a direct sum of all electronic ground state rotational-vibrational levels whose energies are determined by solving the radial nuclear Schrödinger equation within the Born-Oppenheimer approximation.