Skip to Content
Generative AI in Action
book

Generative AI in Action

by Amit Bahree
November 2024
Intermediate to advanced
464 pages
14h 38m
English
Manning Publications
Content preview from Generative AI in Action

3 Working through an API: Generating text

This chapter covers

  • Generative AI models and their categorization based on specific applications
  • The process of listing available models, understanding their capabilities, and choosing the appropriate ones
  • The completion API and chat completion API offered by OpenAI
  • Advanced options for completion and chat completion APIs that help us steer the model and hence control the generation
  • The importance of managing tokens in a conversation for improved user experience and cost-effectiveness

We have seen that large language models (LLMs) provide a powerful suite of machine learning tools specifically designed to enhance natural language understanding and generation. OpenAI features two notable APIs: ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Generative AI with LangChain

Generative AI with LangChain

Ben Auffarth
Introduction to Generative AI

Introduction to Generative AI

Numa Dhamani, Maggie Engler

Publisher Resources

ISBN: 9781633436947Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link