Harnessing the Power of LLMs in Practice: A Survey on ChatGPT and Beyond