[SOLVED] - Thank you @remote turtle
The solution is to delete the line containing a stop sequence. The CLI works! I am trying to implement a CLI version of the bot and then implement speech activation. Something like Alexa but using the ChatGPT bot. I am using the Davinci model since ChatGPT API isn't out yet.
So far I have successfully gotten a response for the API but it is blank. The code is located in this termbin link. (The API key in the code has been deactivated) https://termbin.com/1dz7o
Thank you and if any other hobbyist would like to collaborate with me post here and we shall make a discord channel for programming with the API.