pub type TextResponseFormat = TextResponseFormatConfiguration;Aliased Type§
pub enum TextResponseFormat {
Text,
JsonObject,
JsonSchema(ResponseFormatJsonSchema),
}Variants§
Text
Default response format. Used to generate text responses.
JsonObject
JSON object response format. An older method of generating JSON responses.
Using json_schema is recommended for models that support it.
Note that the model will not generate JSON without a system or user message
instructing it to do so.
JsonSchema(ResponseFormatJsonSchema)
JSON Schema response format. Used to generate structured JSON responses. Learn more about Structured Outputs.