OpenAI::ResponseFormatJsonObject
Inherits JSON::Serializable < Reference < Object
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.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : ResponseFormatJsonObjectType = ResponseFormatJsonObjectType::JsonObject)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
type_value=(type_value : ResponseFormatJsonObjectType)
The type of response format being defined. Always json_object.