OpenAI API Cookbook Build Intelligent Applications Including Chatbots, Virtual Assistants, and Content Generators

Explore the vast possibilities of integrating the ChatGPT API across various domains, from creating simple wrappers to developing knowledge-based assistants, multi-model applications, and conversational interfaces Key Features Understand the different elements, endpoints, and parameters of the OpenA...

Descripción completa

Detalles Bibliográficos
Otros Autores: Habib, Henry, author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Birmingham, England : Packt Publishing Ltd [2024]
Edición:First edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009805221006719
Tabla de Contenidos:
  • Cover
  • Title Page
  • Copyright and credits
  • Dedication
  • Foreword
  • Contributors
  • Table of Contents
  • Preface
  • Chapter 1: Unlocking OpenAI and Setting Up Your API Playground Environment
  • Technical requirements
  • Setting up your OpenAI Playground environment
  • Getting ready
  • How to do it…
  • How it works…
  • Running a completion request in the OpenAI Playground
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • Using the System Message in the OpenAI Playground
  • How to do it…
  • How it works…
  • There's more…
  • Using the Chat Log to modify the model's behavior
  • How to do it…
  • How it works…
  • Making OpenAI API requests with Postman
  • Getting ready
  • How to do it…
  • How it works…
  • Chapter 2: OpenAI API Endpoints Explained
  • Technical requirements
  • Generating customized responses using the Chat Completions endpoint
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • Creating pictures using the Images endpoint
  • How to do it…
  • How it works…
  • Generating transcripts using the Audio endpoint
  • Getting ready
  • How to do it…
  • How it works…
  • Chapter 3: Understanding Key Parameters and Their Impact on Generated Responses
  • Technical requirements
  • Changing the model parameter and understanding its impact on generated responses
  • Getting ready
  • How to do it…
  • How it works…
  • Controlling the number of generated responses using the n parameter
  • How to do it…
  • How it works…
  • Determining the randomness and creativity of generated responses using the temperature parameter
  • How to do it…
  • How it works…
  • Chapter 4: Incorporating Additional Features from the OpenAI API
  • Technical requirements
  • Using the Python library to call the OpenAI API
  • Getting ready
  • How to do it…
  • How it works…
  • Benefits and drawbacks of using the Python library.
  • Using the embedding model for text comparisons and other use cases
  • How to do it…
  • How it works…
  • Fine-tuning a completion model
  • How to do it…
  • How it works…
  • Chapter 5: Staging the OpenAI API for Application Development
  • Technical requirements
  • Creating a public endpoint server that calls the OpenAI API
  • Getting ready
  • How to do it…
  • How it works…
  • Extending the endpoint server to accept parameters and return data
  • How to do it…
  • How it works…
  • Calling the user-created endpoint from no-code applications
  • Getting ready
  • How to do it…
  • How it works…
  • Chapter 6: Building Intelligent Applications with the OpenAI API
  • Technical requirements
  • Creating a wrapper application that generates replies to your emails
  • How to do it…
  • How it works…
  • Creating a multi-modal application that generates travel itineraries
  • How to do it…
  • How it works…
  • Chapter 7: Building Assistants with the OpenAI API
  • Technical requirements
  • Creating a knowledge-retrieval assistant application
  • Getting ready
  • How to do it…
  • How it works…
  • Creating a knowledge-retrieval assistant through the Assistants API
  • How to do it…
  • How it works…
  • Index
  • Other Books You May Enjoy.