Zod nullable not supported anymore?

It is exactly the same bug that was described here in February: Structured Ouput - Not respecting the nullable() / nullable : true constraint - with `model : gpt-4o` (thus gpt-4o-2024-08-06). With the release of the 26th of March this bug repeats itself but now for the gpt-4o-2024-11-20 instead of the gpt-4o-2024-08-06. This time we are stuk though, there is no alternative snapshot we can switch to. It is strange that developers are encouraged to use a dated snapshot for production to keep things stable. But somehow the structured output feature broke with the last two releases, even though when using a dated snapshot “nothing should have changed”…

1 Like