Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

Structured Outputs Sample Apps

MIT License NextJS OpenAI API

Structured Outputs is an OpenAI API feature that ensures responses and tool calls adhere to a defined JSON schema. This makes building with our models more reliable, bridging the gap between unpredictable model outputs and deterministic workflows.

This repository contains a collection of sample apps showcasing the use of Structured Outputs.

Each app demonstrates practical ways to leverage this feature to build applications with NextJS.


Table of Contents

  1. How to Use
  2. Sample Apps
  3. Resources
  4. Contributing
  5. License

How to use

  1. Set Up the OpenAI API:

  2. Clone the Repository:

    git clone https://github.com/openai/structured-outputs-samples.git
  3. Try a sample App:

    • Navigate to the sample app you want to try (cd /<app_folder>)
    • Refer to the README of the app to run it locally.
  4. Make it your own

    Explore the code, update it, and use it in your own projects or as a starting point!

Sample Apps

There are three sample apps in this repository:

Resume Extraction

This app is a simple example of how to use Structured Outputs in model responses to display information in a structured format.

Resume Extraction Demo

Generative UI

This app focuses on generating UI components on the fly with Structured Outputs.

Generative UI Demo

Conversational Assistant

This app is a more complex example that combines multi-turn conversations, tool calling and generative UI. You can use this as a starting point to build an assistant with reliable workflows.

Conversational Assistant Demo

Resources

Contributing

You are welcome to open issues or submit PRs to improve this app, however, please note that we may not review all suggestions.

License

This project is licensed under the MIT License. See the LICENSE file for details.

关于 About

Sample apps to help developers get started with Structured Outputs

语言 Languages

TypeScript93.0%
CSS4.8%
JavaScript2.2%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
2
Total Commits
峰值: 2次/周
Less
More

核心贡献者 Contributors