Chat-UniVi: Unified Visual Representation Empowers Large Language Models with Image and Video Understanding