The Evolution of Generative AI: From GPT-3.5 to GPT-4