-
Book Overview & Buying
-
Table Of Contents
Python Automation Cookbook - Third Edition
By :
We will use OpenAI as our provider for the AI models in this chapter.
Remember that these techniques are available in different AI models and frameworks. You can achieve similar results with other providers like Anthropic's Claude or using local models through Ollama. See Chapter 11, recipe Using a local model to learn more about the latter option.
We described in the Technical requirements section of Chapter 11 the steps that we need to set up an account that will allow us to call the OpenAI APIs. Go there and follow the instructions if you haven't already done so.
Be sure to have your .env file present in your working directory.
You can check the code presented in the chapter at the GitHub URL https://github.com/PacktPublishing/Python-Automation-Cookbook-Third-Edition/tree/main/ch13.