-
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, 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.
You can check the code presented in the chapter at the GitHub URL https://github.com/PacktPublishing/Python-Automation-Cookbook-Third-Edition/tree/main/ch14.
Be sure to have your keys.py file present in your working directory. There's a template for the required fields in the GitHub repo directory called keys.py.template.