OpenAI::PredictionContent
Inherits JSON::Serializable < Reference < Object
Static predicted output content, such as the content of a text file that is being regenerated.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : PredictionContentType = PredictionContentType::Content, content : PredictionContentContent = "")
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
content
The content that should be matched when generating a model response. If generated tokens would match this content, the entire model response can be returned much more quickly.
content=(content : PredictionContentContent)
The content that should be matched when generating a model response. If generated tokens would match this content, the entire model response can be returned much more quickly.
type_value
The type of the predicted content you want to provide. This type is
currently always content.
type_value=(type_value : PredictionContentType)
The type of the predicted content you want to provide. This type is
currently always content.