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.
English Edition
Even when I define the JSON schema I want, GPT sometimes fails to extract it correctly.
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
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.
Sign in with GitHub to leave a comment.