Unlocking the Potential: A Comparative Analysis of LLaMA and ChatGPT