In this blog post, the author discusses how to build a chatbot using the ChatGPT API. They recommend using OpenAI APIs directly or Azure OpenAI APIs to code in Python. The post provides a step-by-step process to build this chatbot and ensure its successful operation.
It's crucial to store and send the previous message with the API request to maintain context in the conversation. The author provides sample code on their GitHub to create this chatbot.
They also discuss how to count the number of tokens and truncate the message list to avoid exceeding the maximum token limit.
















