How Does Chatgpt Generate Human Like Text Responses