Structured Outputs Deep-dive

Really appreciate the article, very helpful, particularly the bit about making the schema as flat as possible. I’ve had issues recently with gpt-4o-mini providing the required keys, but not following the schema at all (a child key moves to the parent level, etc.)

With enums I wonder - have you had issues where, even with enums set, it would still hallucinate the value (something not provided in the list)? Again, I see this more with mini, but wondered with your experience if you’ve seen this as well.

1 Like