Interface ChatOpenAIStructuredOutputMethodOptions<IncludeRaw>

interface ChatOpenAIStructuredOutputMethodOptions<IncludeRaw> {
    strict?: boolean;
}

Type Parameters

  • IncludeRaw extends boolean

Hierarchy (view full)

Properties

Properties

strict?: boolean

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.

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.