11 ms·
You might be using JSON mode, which doesn’t guarantee a schema will be followed, or structured outputs not in strict mode. It is possible to get the property th
by gradys 11mo ago
You might be using JSON mode, which doesn’t guarantee a schema will be followed, or structured outputs not in strict mode. It is possible to get the property that the response is either a valid instance of the schema or an error (eg for refusal)
- jawiggins 11mo agoHow do you activate strict mode when using pydantic schemas? It doesn't look like that is a valid parameter to me. No, I don't get refusals, I see literally invalid json, like: `{"field": ["value...}`