ChatGPT - Send Message Function Refactor