Skip to main content

20 docs tagged with "text"

View all tags

Background Completion Jobs

In this lesson, you'll learn how to submit long-running OpenAI response jobs to be processed in the background, ideal for large outputs like novels or report...

Building a Multi-Turn Chatbot

In this lesson, you’ll learn how to build a conversational chatbot using the OpenAI Chat Completions API. This chatbot will retain context across turns, maki...

Combining File and Text Inputs

In this lesson, you'll learn how to send a file along with a user prompt to GPT-4.1 using the inputfile and inputtext types. Have a file ready to upload (PDF...

File Search with GPT-4o

In this lesson, we’ll use the file_search tool to allow GPT-4o to pull information from a specific vector store. This is perfect for querying private documen...

Flirty Chatbot with Memory

In this lesson, you'll learn how to build a persona-driven chatbot that uses slang and maintains conversation history across turns using previousresponseid....

Function Calling with External APIs

In this lesson, you’ll learn how to use the OpenAI function-calling capability to dynamically fetch real-time weather data using external APIs. Make sure you:

Limiting File Search Results

In this lesson, you'll learn how to limit the number of documents GPT-4o considers from a vector store by setting maxnumresults. Make sure you have:

Multimodal Input – Text + Image

In this lesson, you'll learn how to use multimodal inputs (text and image together) with OpenAI’s GPT-4.1 API to analyze visual content. Ensure you have the...

Multimodal Moderation – Text + Images

In this lesson, you'll learn how to use OpenAI’s omni-moderation-latest model to classify both text and images for policy violations in a single moderation r...

Nested Structured Output with Pydantic

In this lesson, you'll learn how to parse complex, nested responses into structured Python objects using Pydantic models and the OpenAI parse() method. Insta...

Streaming Responses from OpenAI

In this lesson, you'll learn how to receive responses in real-time using OpenAI's streaming API, allowing your app to react immediately as the model generate...

Structured Output Using Pydantic

In this lesson, you’ll learn how to extract structured data from user input using a Pydantic model with OpenAI’s parse() method. Install the required packages:

Uploading Files to a Vector Store

In this lesson, you'll learn how to create a new vector store, upload a file into it, and then query it using GPT-4o with the file_search tool. Make sure you...

Using Chat Completions API

In this lesson, we’ll explore how to use the Chat Completions API to have a multi-turn conversation with the model using roles like system, user, and assista...

Using Web Search Tool with GPT-4o

In this lesson, we’ll explore how to enable the websearchpreview tool to allow GPT-4o to fetch up-to-date information from the internet. Ensure you have:

Vision Input with GPT-4o

In this lesson, you'll learn how to use OpenAI’s GPT-4o model to interpret and respond to image inputs. This is useful for building AI tools that understand...