Skip to content
Minsing Log
Go back

English Edition

Error When Validating GPT Analysis with a JSON Schema

Programming & CS

Problem

Even when I define the JSON schema I want, GPT sometimes fails to extract it correctly.

Solution

In this case, you can set the item of a property that is allowed to have a null value to [“string”, “null”], like this.

Follow the journey

Get new posts by email.

Short, honest notes on building, startups, learning, failures, and retrospectives, for readers who follow the journey rather than pass through from search.

The newsletter is coming soon. Until then, follow via RSS or email me to get notified.


Share this post:

Comments

Sign in with GitHub to leave a comment.


Previous Post
What Is a Quartile? (What Is a Box Plot?)
Next Post
ModuleNotFoundError: No module named 'modAL' Unfair nonsense