Skip to content

projectshft/structured_outputs_with_openai

Repository files navigation

Structured Outputs Demo

A simple Next.js app that demonstrates OpenAI's structured outputs feature.

Instead of getting messy text responses from AI, this app shows how to get clean, structured JSON that your frontend can actually use.

What it does

  • Ask for a recipe (like "meat lovers lasagna")
  • Get back structured ingredient data with name, amount, and unit
  • No more parsing weird AI text responses!

Run it

yarn dev

Add your OpenAI API key to .env:

OPENAI_API_KEY=your_key_here

Video Tutorial

[Watch the walkthrough video here - LINK COMING SOON]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages