openai-structured-outputs-samples  by openai

Sample apps for OpenAI structured outputs

Created 9 months ago
650 stars

Top 51.3% on SourcePulse

GitHubView on GitHub
Project Summary

This repository provides sample applications demonstrating OpenAI's Structured Outputs feature, designed to help developers reliably integrate AI models into deterministic workflows by enforcing JSON schema adherence for responses and tool calls. The target audience includes developers building applications with OpenAI models, particularly those using NextJS, who need predictable and structured AI-generated data.

How It Works

The core approach leverages OpenAI's API to generate outputs that conform to a predefined JSON schema. This ensures that model responses, including tool calls, are consistently formatted, simplifying data parsing and integration into downstream processes. The sample apps showcase this by using Structured Outputs for tasks like extracting information into a structured format, dynamically generating UI components, and managing multi-turn conversations with tool integration.

Quick Start & Requirements

Highlighted Details

  • Demonstrates Structured Outputs for resume extraction.
  • Showcases generative UI component creation.
  • Includes a conversational assistant with multi-turn and tool-calling capabilities.
  • Focuses on practical application development using NextJS.

Maintenance & Community

Contributions via issues or PRs are welcome, though review is not guaranteed.

Licensing & Compatibility

Licensed under the MIT License, permitting commercial use and integration with closed-source projects.

Limitations & Caveats

The repository contains sample applications and may not represent a production-ready framework. Specific app functionalities and their robustness depend on the individual app's implementation.

Health Check
Last Commit

8 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
2 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Shyamal Anadkat Shyamal Anadkat(Research Scientist at OpenAI), and
12 more.

harmony by openai

0.5%
4k
Renderer for OpenAI's harmony response format
Created 1 month ago
Updated 1 month ago
Starred by Peter Norvig Peter Norvig(Author of "Artificial Intelligence: A Modern Approach"; Research Director at Google).

python-openai-demos by pamelafox

0.5%
381
Python scripts for OpenAI API demos
Created 1 year ago
Updated 1 week ago
Starred by Nir Gazit Nir Gazit(Cofounder of Traceloop), Chris Van Pelt Chris Van Pelt(Cofounder of Weights & Biases), and
1 more.

go-openai by sashabaranov

0.1%
10k
Go client for OpenAI API
Created 5 years ago
Updated 6 days ago
Feedback? Help us improve.