Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
OpenAI API Cookbook

You're reading from   OpenAI API Cookbook Build intelligent applications including chatbots, virtual assistants, and content generators

Arrow left icon
Product type Paperback
Published in Mar 2024
Publisher Packt
ISBN-13 9781805121350
Length 192 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Henry Habib Henry Habib
Author Profile Icon Henry Habib
Henry Habib
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Chapter 1: Unlocking OpenAI and Setting Up Your API Playground Environment 2. Chapter 2: OpenAI API Endpoints Explained FREE CHAPTER 3. Chapter 3: Understanding Key Parameters and Their Impact on Generated Responses 4. Chapter 4: Incorporating Additional Features from the OpenAI API 5. Chapter 5: Staging the OpenAI API for Application Development 6. Chapter 6: Building Intelligent Applications with the OpenAI API 7. Chapter 7: Building Assistants with the OpenAI API 8. Index 9. Other Books You May Enjoy

Technical requirements

All the recipes in this chapter require you to have access to the OpenAI API (via a generated API key) and have an API client installed. In case you don’t recall how to do this, you can refer to the Chapter 1 recipe Making OpenAI API requests with Postman.

In previous chapters, we have used Postman as our API client. In this case, we will use the programmatic language Python instead. Specifically, the recipes will use the OpenAI Python library to make calls to the OpenAI API.

We will run Python in a service called Google Colab. Colab is an online hosted Jupyter Notebook service by Google, that requires no setup to use and can run Python code within the browser. The Jupyter Notebook is an open sourced web application that allows you to create and share documents and contains live code that can be run step by step. This is the environment we will use to run our Python code.

To use Google Colab, you need to create and be signed in to a valid Google...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime