---
title: "Discussion on \"OpenAI Structured Output + Pydantic: Adding Support for Default Values\" | Hashnode"
description: "Discussion on \"OpenAI Structured Output + Pydantic: Adding Support for Default Values\". Learn how to handle default values and unions in OpenAI structured outputs using Pydantic models with this practical guide and code examples"
url: "https://hashnode.com/posts/openai-structured-output-fixes/66bb9ae3c33ec9fe4a7e6b40"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [OpenAI Structured Output + Pydantic: Adding Support for Default Values](https://engineering.fractional.ai/openai-structured-output-fixes?utm_source=hashnode&utm_medium=feed)

Learn how to handle default values and unions in OpenAI structured outputs using Pydantic models with this practical guide and code examples

Aug 13, 2024 · 4 min read · engineering.fractional.ai  
Read the article

## Written by

[Chris Mullins](https://hashnode.com/@cmullins)

@cmullins

  
[View profile](https://hashnode.com/@cmullins)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
