OpenAI::ResponseFormatTextGrammar
Inherits JSON::Serializable < Reference < Object
A custom grammar for the model to follow when generating text. Learn more in the custom grammars guide.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : ResponseFormatTextGrammarType = ResponseFormatTextGrammarType::Grammar, grammar : String = "")
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
type_value=(type_value : ResponseFormatTextGrammarType)
The type of response format being defined. Always grammar.