"min-" & "maxItems" are not supported in Structured Output

Hi @vmalyi and welcome to the community!

minItems and maxItems are currently not supported, see here.

I am not sure “when” they will be supported - perhaps one of the OpenAI staff can comment.

I found that I can to a certain degree control this via my prompt or by providing this as a description in the Field (I am using Python + Pydantic).

2 Likes