class

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(type_value : ResponseFormatJsonObjectType = ResponseFormatJsonObjectType::JsonObject)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

type_value

The type of response format being defined. Always json_object.

Source
type_value=(type_value : ResponseFormatJsonObjectType)

The type of response format being defined. Always json_object.

Source