He uses the paid API of OpenAI called davinci-03, which is a very similar model as what ChatGPT use, and there is a python open source library called langchain, which builds on various LLM API s including OpenAI. So you can