liveBook · Manning

Chat completion

Chat completion is an API operation that generates an assistant response from conversational messages and related request parameters.

How 2 Manning books explain it

Data Analysis with LLMs

A chat completion is an API operation that generates an assistant response from a sequence of conversational messages.

How it is used
Generates assistant replies to chat histories or single prompts for text and image-question tasks.
How deep it goes
Walks through message structure, Python calls, response access, parameters, and retries without explaining model internals.
Examples
Uses a story prompt, generated text-analysis prompts, and a yes-or-no question about an image.
What you can do after
Apply it via OpenAI’s Python library to submit messages, retrieve assistant text, and configure generation.

Read how Data Analysis with LLMs explains chat completion →

Learn AI Data Engineering

The Chat Completions endpoint is an OpenAI API endpoint that generates assistant responses from conversational messages and related request parameters.

How it is used
Enables Python data pipelines to generate sentiment labels and perform prompt-defined data-quality transformations.
How deep it goes
Explains message roles and controls, then advances from plain prompts to structured response models and data classes.
Examples
Demonstrates a gpt-4o greeting request, article sentiment scoring, and cleanup of duplicate and null-heavy customer data.
What you can do after
Apply it via the OpenAI Python SDK to enrich records, request structured results, and verify AI-driven transformations.

Read how Learn AI Data Engineering explains chat completion →

Also covered in

What to know first

Related concepts

Questions about chat completion

What is chat completion?

Chat completion is an API operation that generates an assistant response from conversational messages and related request parameters.

Which Manning books explain chat completion?

Data Analysis with LLMs and Learn AI Data Engineering.

What should I know before learning chat completion?

Manning books that teach chat completion usually introduce ChatGPT and Python first.

What is the difference between chat completion and embedding endpoint?

Chat completion is an API operation that generates an assistant response from conversational messages and related request parameters. An embedding endpoint is an API endpoint that converts input content into vector representations.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.