Skip to main content

29 docs tagged with "ai-platform"

View all tags

Agent Guardrails and Triage Logic

In this lesson, you'll learn how to use InputGuardrail and agent handoffs to build a triaging agent that routes queries to specialized assistants, with logic...

Analyzing and Responding to Audio Input

In this lesson, you'll learn how to send an audio file to OpenAI’s gpt-4o-audio-preview model for transcription and analysis, and receive both textual and au...

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:

Image Generation with GPT-4

In this lesson, you'll learn how to use the image_generation tool in OpenAI’s API to generate images and save them to your local machine. Install the OpenAI...

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...

OpenAI API: Batch Processing Guide

Batch processing allows you to submit multiple requests to the OpenAI API asynchronously and process them more efficiently, especially when working with larg...

Sample Files for course

Sample PDF File containing AWS course Information Sample PDF containing a company's info Sample PDF File containing CSV Records

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 Local Base64-Encoded Images

In this lesson, you'll learn how to send a local image to the GPT-4.1 API by encoding it to Base64 and passing it as a data URI. Install the OpenAI SDK:

Using OpenAI's Agent + Runner Interface

In this lesson, you’ll learn how to use the new Agent and Runner abstraction from OpenAI’s experimental agent framework to create assistants that can follow...

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...