class

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(type_value : PredictionContentType = PredictionContentType::Content, content : PredictionContentContent = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance 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.

Source
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.

Source
type_value

The type of the predicted content you want to provide. This type is currently always content.

Source
type_value=(type_value : PredictionContentType)

The type of the predicted content you want to provide. This type is currently always content.

Source