How To Make A Chatbot For Discord Using Python

The code above allows input lengths of an unbounded amount of tokens since it appends the input and output to `prompt` every time the API is called which is not recommended. To better tune the chatbot for our needs let’s use an example provided by OpenAI, Marv the...