As you know new “strict”: true feature is addded by openai. I’ve realized a bug in this system. When I use “strict”: true, and trying to save my function calling schema on my assistant api, it does not save and give me the following error:
“Invalid schema for function ‘price_calculation’: In context=(‘properties’, ‘price_calculation’, ‘properties’, ‘Stromboli’, ‘items’, ‘properties’, ‘num_singular_toppings’), ‘minimum’ is not permitted”
here is my related part in my schema:
"num_singular_toppings": {
"type": "integer",
"description": "Number of singular toppings",
"minimum": 0
},
As you know if the type is number or integer, we can use “minimum” feature in json. But open ai does not accept that interestingly when you set “strict”: true. It looks like a bug to me and does not make any sense.
Has anybody realized this? Any idea?