Optional
strict: If true and method = "function_calling", model output is guaranteed to exactly match the schema. If true, the input schema will also be validated according to https://platform.openai.com/docs/guides/structured-outputs/supported-schemas. If false, input schema will not be validated and model output will not be validated. If undefined, strict argument will not be passed to the model.
true
method
false
undefined
strict
0.2.6
Planned breaking change in version 0.3.0: strict will default to true when method is "function_calling" as of version 0.3.0.
0.3.0
strict: If
true
andmethod
= "function_calling", model output is guaranteed to exactly match the schema. Iftrue
, the input schema will also be validated according to https://platform.openai.com/docs/guides/structured-outputs/supported-schemas. Iffalse
, input schema will not be validated and model output will not be validated. Ifundefined
,strict
argument will not be passed to the model.